comparison src/bluetooth/gui.c @ 2649:d891ba4be5a5

fixed crash when prefs window was closed while scanning
author Paula Stanciu <paula.stanciu@gmail.com>
date Sun, 25 May 2008 23:04:33 +0300
parents 7fbff3287a56
children 229647ca4942
comparison
equal deleted inserted replaced
2648:6cc858a726b8 2649:d891ba4be5a5
58 GtkTreeIter iter; 58 GtkTreeIter iter;
59 gint i=0; 59 gint i=0;
60 gint dev_no=0; 60 gint dev_no=0;
61 GList *dev; 61 GList *dev;
62 gchar *temp; 62 gchar *temp;
63 if(!window)
64 return NULL;
63 /* create list store */ 65 /* create list store */
64 store = gtk_list_store_new(NUM_COLUMNS, 66 store = gtk_list_store_new(NUM_COLUMNS,
65 G_TYPE_STRING); 67 G_TYPE_STRING);
66 68
67 /*add inf to test_data from audio_devices */ 69 /*add inf to test_data from audio_devices */
100 } 102 }
101 103
102 104
103 void refresh_tree() 105 void refresh_tree()
104 { 106 {
107 if(!window)
108 return;
105 model = rebuild_model(); 109 model = rebuild_model();
106 gtk_tree_view_set_model(GTK_TREE_VIEW(treeview),GTK_TREE_MODEL(model)); 110 gtk_tree_view_set_model(GTK_TREE_VIEW(treeview),GTK_TREE_MODEL(model));
107 } 111 }
108 112
109 113