[gnome-bluetooth] lib: Fix button chooser's original label



commit bd37a1e00849606c5c4ed7e7725c239ac629beaa
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Feb 7 00:04:35 2011 +0000

    lib: Fix button chooser's original label
    
    Make sure the device property is set by default when creating
    the object, so that the label is set as expected.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=641594

 lib/bluetooth-chooser-button.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/lib/bluetooth-chooser-button.c b/lib/bluetooth-chooser-button.c
index 4c3707d..84bc588 100644
--- a/lib/bluetooth-chooser-button.c
+++ b/lib/bluetooth-chooser-button.c
@@ -351,7 +351,7 @@ bluetooth_chooser_button_class_init (BluetoothChooserButtonClass *klass)
 	 **/
 	g_object_class_install_property (object_class, PROP_DEVICE,
 					 g_param_spec_string ("device", "Device", "The Bluetooth address of the selected device.",
-							      NULL, G_PARAM_READWRITE));
+							      NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
 	/**
 	 * BluetoothChooserButton:is-available:
 	 *
@@ -396,7 +396,6 @@ GtkWidget *
 bluetooth_chooser_button_new (void)
 {
 	return g_object_new (BLUETOOTH_TYPE_CHOOSER_BUTTON,
-			     "label", _(DEFAULT_STR),
 			     NULL);
 }
 



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