diff options
author | Milan Crha <mcrha@redhat.com> | 2011-08-09 23:18:42 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-08-09 23:18:42 +0800 |
commit | fe67798104f76f0a794093bddcaf9d165df50bf5 (patch) | |
tree | 4cd5215c7e88611c7a8abddc0dcba78c8ff0b284 /addressbook/gui/widgets/eab-config.c | |
parent | 9ceea10bca7e9c346ab04e35e883b69203ab5c62 (diff) | |
download | gsoc2013-evolution-fe67798104f76f0a794093bddcaf9d165df50bf5.tar gsoc2013-evolution-fe67798104f76f0a794093bddcaf9d165df50bf5.tar.gz gsoc2013-evolution-fe67798104f76f0a794093bddcaf9d165df50bf5.tar.bz2 gsoc2013-evolution-fe67798104f76f0a794093bddcaf9d165df50bf5.tar.lz gsoc2013-evolution-fe67798104f76f0a794093bddcaf9d165df50bf5.tar.xz gsoc2013-evolution-fe67798104f76f0a794093bddcaf9d165df50bf5.tar.zst gsoc2013-evolution-fe67798104f76f0a794093bddcaf9d165df50bf5.zip |
Bug #655492 - Move 'Automatic contacts' tab to 'Contacts' part
Diffstat (limited to 'addressbook/gui/widgets/eab-config.c')
-rw-r--r-- | addressbook/gui/widgets/eab-config.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/addressbook/gui/widgets/eab-config.c b/addressbook/gui/widgets/eab-config.c index dbbb8cefc2..5cb8d25e81 100644 --- a/addressbook/gui/widgets/eab-config.c +++ b/addressbook/gui/widgets/eab-config.c @@ -54,6 +54,8 @@ ecp_target_free (EConfig *ec, EConfigTarget *t) p->source_changed_id = 0; } break; } + case EAB_CONFIG_TARGET_PREFS: + break; } } @@ -64,6 +66,12 @@ ecp_target_free (EConfig *ec, EConfigTarget *t) if (s->source) g_object_unref (s->source); break; } + case EAB_CONFIG_TARGET_PREFS: { + EABConfigTargetPrefs *s = (EABConfigTargetPrefs *) t; + + if (s->gconf) + g_object_unref (s->gconf); + break; } } ((EConfigClass *) ecp_parent_class)->target_free (ec, t); @@ -91,6 +99,8 @@ ecp_set_target (EConfig *ec, EConfigTarget *t) s->source, "changed", G_CALLBACK (ecp_source_changed), ec); break; } + case EAB_CONFIG_TARGET_PREFS: + break; } } } @@ -145,3 +155,17 @@ eab_config_target_new_source (EABConfig *ecp, struct _ESource *source) return t; } + +EABConfigTargetPrefs * +eab_config_target_new_prefs (EABConfig *ecp, GConfClient *gconf) +{ + EABConfigTargetPrefs *t = e_config_target_new ( + &ecp->config, EAB_CONFIG_TARGET_PREFS, sizeof (*t)); + + if (gconf) + t->gconf = g_object_ref (gconf); + else + t->gconf = NULL; + + return t; +} |