Mercurial > audlegacy-plugins
comparison src/bluetooth/scan_gui.c @ 2884:4128ae5633e4
disable play button while pairing - some cleanups
author | Paula Stanciu <paula.stanciu@gmail.com> |
---|---|
date | Sat, 09 Aug 2008 20:46:49 +0300 |
parents | 455e6e37feae |
children | 7a1bc6c600e0 |
comparison
equal
deleted
inserted
replaced
2883:67d527114af5 | 2884:4128ae5633e4 |
---|---|
50 { | 50 { |
51 if(bonding_finish == 1 ) { | 51 if(bonding_finish == 1 ) { |
52 if(window){ | 52 if(window){ |
53 gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress_bar),1); | 53 gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress_bar),1); |
54 show_pairing_ok(); | 54 show_pairing_ok(); |
55 gtk_widget_set_sensitive(rescan_buttton,TRUE); | |
56 | |
55 } | 57 } |
56 return 0; | 58 return 0; |
57 } | 59 } |
58 } | 60 } |
59 } | 61 } |
135 rescan_buttton = gtk_button_new_with_mnemonic(_("Rescan")); | 137 rescan_buttton = gtk_button_new_with_mnemonic(_("Rescan")); |
136 g_signal_connect(rescan_buttton,"clicked",G_CALLBACK (refresh_call),NULL); | 138 g_signal_connect(rescan_buttton,"clicked",G_CALLBACK (refresh_call),NULL); |
137 }else{ | 139 }else{ |
138 rescan_buttton = gtk_button_new_with_mnemonic(_("Play")); | 140 rescan_buttton = gtk_button_new_with_mnemonic(_("Play")); |
139 g_signal_connect(rescan_buttton,"clicked",G_CALLBACK (play_call),NULL); | 141 g_signal_connect(rescan_buttton,"clicked",G_CALLBACK (play_call),NULL); |
142 gtk_widget_set_sensitive(rescan_buttton,FALSE); | |
140 } | 143 } |
141 | 144 |
142 | 145 |
143 | 146 |
144 close_button = gtk_button_new_with_mnemonic(_("Close")); | 147 close_button = gtk_button_new_with_mnemonic(_("Close")); |