Mercurial > audlegacy-plugins
comparison src/bluetooth/scan_gui.c @ 2885:7a1bc6c600e0
Disable rescan/connect while scanning / when no device is selected
author | Paula Stanciu <paula.stanciu@gmail.com> |
---|---|
date | Sat, 09 Aug 2008 21:00:39 +0300 |
parents | 4128ae5633e4 |
children | 5e97b55f87cf |
comparison
equal
deleted
inserted
replaced
2884:4128ae5633e4 | 2885:7a1bc6c600e0 |
---|---|
41 sleep(1); | 41 sleep(1); |
42 if(usage == 0){ | 42 if(usage == 0){ |
43 if(discover_finish == 2 ) { | 43 if(discover_finish == 2 ) { |
44 if(window){ | 44 if(window){ |
45 gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress_bar),1); | 45 gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress_bar),1); |
46 gtk_widget_set_sensitive(rescan_buttton,TRUE); | |
46 } | 47 } |
47 return 0; | 48 return 0; |
48 } | 49 } |
49 }else | 50 }else |
50 { | 51 { |
134 * and treat the case when the bounding is not ok | 135 * and treat the case when the bounding is not ok |
135 */ | 136 */ |
136 if(usage == 0){ | 137 if(usage == 0){ |
137 rescan_buttton = gtk_button_new_with_mnemonic(_("Rescan")); | 138 rescan_buttton = gtk_button_new_with_mnemonic(_("Rescan")); |
138 g_signal_connect(rescan_buttton,"clicked",G_CALLBACK (refresh_call),NULL); | 139 g_signal_connect(rescan_buttton,"clicked",G_CALLBACK (refresh_call),NULL); |
140 gtk_widget_set_sensitive(rescan_buttton,FALSE); | |
139 }else{ | 141 }else{ |
140 rescan_buttton = gtk_button_new_with_mnemonic(_("Play")); | 142 rescan_buttton = gtk_button_new_with_mnemonic(_("Play")); |
141 g_signal_connect(rescan_buttton,"clicked",G_CALLBACK (play_call),NULL); | 143 g_signal_connect(rescan_buttton,"clicked",G_CALLBACK (play_call),NULL); |
142 gtk_widget_set_sensitive(rescan_buttton,FALSE); | 144 gtk_widget_set_sensitive(rescan_buttton,FALSE); |
143 } | 145 } |