[phonemgr] ui: do not call set_dependent_widget() to set sensitivity



commit 5bc71bda484a6fc725897440aa187d156d57f54c
Author: Daniele Forsi <dforsi src gnome org>
Date:   Wed May 2 17:38:00 2012 +0200

    ui: do not call set_dependent_widget() to set sensitivity
    
    It will be called when the S_ACTIVE macros will execute gtk_toggle_button_set_active().

 src/ui.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/src/ui.c b/src/ui.c
index d9b03b8..8b61be4 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -215,11 +215,7 @@ populate_prefs (MyApp *app)
 	ctype = gconf_client_get_int (app->client,
 				      CONFBASE"/connection_type", NULL);
 
-	w = GTK_WIDGET (gtk_builder_get_object (app->ui, "btdevice"));
-	set_dependent_widget (w, CONNECTION_BLUETOOTH, ctype == CONNECTION_BLUETOOTH);
-
 	w = GTK_WIDGET (gtk_builder_get_object (app->ui, "otherportentry"));
-	set_dependent_widget (w, CONNECTION_OTHER, ctype == CONNECTION_OTHER);
 	c  = gconf_client_get_string (app->client,
 				      CONFBASE"/other_serial", NULL);
 	if (c != NULL) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]