From 08dedf0a8a520b55c51a8117dc015915ec39f7fe Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 15 Jun 2012 08:06:28 +0200 Subject: Finish incomplete change (and fix newly introduced compiler warning) --- .../e-book-config-name-selector-entry.c | 31 +++++++--------------- 1 file changed, 9 insertions(+), 22 deletions(-) (limited to 'modules') diff --git a/modules/addressbook/e-book-config-name-selector-entry.c b/modules/addressbook/e-book-config-name-selector-entry.c index 3339931b84..6fa761a136 100644 --- a/modules/addressbook/e-book-config-name-selector-entry.c +++ b/modules/addressbook/e-book-config-name-selector-entry.c @@ -39,21 +39,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) { @@ -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 -- cgit v1.2.3