From fd564be3203400024147469faaa7de0884861566 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 19 Feb 2009 01:36:04 +0000 Subject: Clean up the EMFormat stack. Add some GObject properties to bind to. Add some handy color conversion functions to e-util. svn path=/branches/kill-bonobo/; revision=37290 --- addressbook/gui/component/e-book-shell-module.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'addressbook') diff --git a/addressbook/gui/component/e-book-shell-module.c b/addressbook/gui/component/e-book-shell-module.c index bc224a93ad..0197661326 100644 --- a/addressbook/gui/component/e-book-shell-module.c +++ b/addressbook/gui/component/e-book-shell-module.c @@ -260,6 +260,7 @@ static void action_contact_new_cb (GtkAction *action, EShellWindow *shell_window) { + EShell *shell; EBook *book = NULL; GConfClient *client; ESourceList *source_list; @@ -273,10 +274,11 @@ action_contact_new_cb (GtkAction *action, return; } - client = gconf_client_get_default (); + shell = e_shell_window_get_shell (shell_window); + client = e_shell_get_gconf_client (shell); + key = "/apps/evolution/addressbook/display/primary_addressbook"; uid = gconf_client_get_string (client, key, NULL); - g_object_unref (client); if (uid != NULL) { ESource *source; -- cgit v1.2.3