[evolution] Finish incomplete change (and fix newly introduced compiler warning)



commit 08dedf0a8a520b55c51a8117dc015915ec39f7fe
Author: Milan Crha <mcrha redhat com>
Date:   Fri Jun 15 08:06:28 2012 +0200

    Finish incomplete change (and fix newly introduced compiler warning)

 .../e-book-config-name-selector-entry.c            |   31 ++++++--------------
 1 files changed, 9 insertions(+), 22 deletions(-)
---
diff --git a/modules/addressbook/e-book-config-name-selector-entry.c b/modules/addressbook/e-book-config-name-selector-entry.c
index 3339931..6fa761a 100644
--- a/modules/addressbook/e-book-config-name-selector-entry.c
+++ b/modules/addressbook/e-book-config-name-selector-entry.c
@@ -40,21 +40,6 @@ struct _EBookConfigNameSelectorEntryClass {
 static gpointer parent_class;
 
 static void
-book_config_name_selector_entry_realize (GtkWidget *widget,
-					 EBookConfigNameSelectorEntry *extension)
-{
-	g_settings_bind (
-		extension->settings, "completion-minimum-query-length",
-		widget, "minimum-query-length",
-		G_SETTINGS_BIND_DEFAULT | G_SETTINGS_BIND_NO_SENSITIVITY);
-
-	g_settings_bind (
-		extension->settings, "completion-show-address",
-		widget, "show-address",
-		G_SETTINGS_BIND_DEFAULT | G_SETTINGS_BIND_NO_SENSITIVITY);
-}
-
-static void
 book_config_name_selector_entry_dispose (GObject *object)
 {
 	EBookConfigNameSelectorEntry *extension;
@@ -81,16 +66,18 @@ book_config_name_selector_entry_constructed (GObject *object)
 
 	extension->settings = g_settings_new ("org.gnome.evolution.addressbook");
 
-	/* Wait to bind settings until the ENameSelectorEntry is realized */
-
-	/*g_signal_connect (
-		extensible, "realize",
-		G_CALLBACK (book_config_name_selector_entry_realize), extension);*/
-
 	/* Chain up to parent's consturcted() method. */
 	G_OBJECT_CLASS (parent_class)->constructed (object);
 
-	book_config_name_selector_entry_realize (extensible, extension);
+	g_settings_bind (
+		extension->settings, "completion-minimum-query-length",
+		extensible, "minimum-query-length",
+		G_SETTINGS_BIND_DEFAULT | G_SETTINGS_BIND_NO_SENSITIVITY);
+
+	g_settings_bind (
+		extension->settings, "completion-show-address",
+		extensible, "show-address",
+		G_SETTINGS_BIND_DEFAULT | G_SETTINGS_BIND_NO_SENSITIVITY);
 }
 
 static void



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