[phonemgr] Make the Bluetooth chooser button always show a label



commit c11427a8220448be3df3b8d7fbe32fa6a57f2f06
Author: Daniele Forsi <dforsi src gnome org>
Date:   Sat Feb 5 11:46:17 2011 +0100

    Make the Bluetooth chooser button always show a label
    
    If the device property is never set (as it is the case when
    gnome-phone-manager is started for the first time after
    installation) the current version of the button doesn't show
    the "Click to select device..." label.

 src/ui.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/ui.c b/src/ui.c
index 9169849..67b204a 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -450,6 +450,12 @@ ui_init (MyApp *app)
 				    "active");
 
 	/* And the address chooser */
+	/* XXX Force a value to the device property else if there is no valid value in gconf
+	   and the Bluetooth chooser button won't show any label
+	 */
+	g_object_set (G_OBJECT (gtk_builder_get_object (app->ui, "btchooser")),
+		      "device", NULL,
+		      NULL);
 	gconf_bridge_bind_property (bridge,
 				    CONFBASE"/bluetooth_addr",
 				    G_OBJECT (gtk_builder_get_object (app->ui, "btchooser")),



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