diff 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
line wrap: on
line diff
--- a/src/bluetooth/scan_gui.c	Thu Aug 07 20:39:35 2008 +0300
+++ b/src/bluetooth/scan_gui.c	Sat Aug 09 20:46:49 2008 +0300
@@ -52,6 +52,8 @@
                 if(window){
                     gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress_bar),1);
                     show_pairing_ok();
+                    gtk_widget_set_sensitive(rescan_buttton,TRUE);
+
                 }
                 return 0;
             }
@@ -137,6 +139,7 @@
         }else{
             rescan_buttton = gtk_button_new_with_mnemonic(_("Play"));
             g_signal_connect(rescan_buttton,"clicked",G_CALLBACK (play_call),NULL);
+            gtk_widget_set_sensitive(rescan_buttton,FALSE);
         }