aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-06-15 14:06:28 +0800
committerMilan Crha <mcrha@redhat.com>2012-06-15 14:06:28 +0800
commit08dedf0a8a520b55c51a8117dc015915ec39f7fe (patch)
treea31e28d20e1ddbb2a6e06fb0537d1193a93cb647 /modules
parentbea5e0e92d9d4c040093330b7210ca73d9558bd5 (diff)
downloadgsoc2013-evolution-08dedf0a8a520b55c51a8117dc015915ec39f7fe.tar
gsoc2013-evolution-08dedf0a8a520b55c51a8117dc015915ec39f7fe.tar.gz
gsoc2013-evolution-08dedf0a8a520b55c51a8117dc015915ec39f7fe.tar.bz2
gsoc2013-evolution-08dedf0a8a520b55c51a8117dc015915ec39f7fe.tar.lz
gsoc2013-evolution-08dedf0a8a520b55c51a8117dc015915ec39f7fe.tar.xz
gsoc2013-evolution-08dedf0a8a520b55c51a8117dc015915ec39f7fe.tar.zst
gsoc2013-evolution-08dedf0a8a520b55c51a8117dc015915ec39f7fe.zip
Finish incomplete change (and fix newly introduced compiler warning)
Diffstat (limited to 'modules')
-rw-r--r--modules/addressbook/e-book-config-name-selector-entry.c31
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 3339931b84..6fa761a136 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