From 8c0bd86d5fdd6d87c3170e2a01423e7c7018a981 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 14 Nov 2008 03:56:01 +0000 Subject: Rearranged some of the addressbook code to try and eliminate some circular dependencies in our libraries. The circular dependency between the composer and the mail module is still causing me headaches. And it doesn't help that the addressbook and calendar also want to link to the composer. svn path=/branches/kill-bonobo/; revision=36782 --- a11y/addressbook/ea-minicard-view.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'a11y') diff --git a/a11y/addressbook/ea-minicard-view.c b/a11y/addressbook/ea-minicard-view.c index 944060b91a..aed11ed2ac 100644 --- a/a11y/addressbook/ea-minicard-view.c +++ b/a11y/addressbook/ea-minicard-view.c @@ -362,11 +362,9 @@ static gboolean atk_action_interface_do_action (AtkAction *action, gint i) { gboolean return_value = TRUE; EMinicardView *card_view; - EContact *contact = e_contact_new(); AtkGObjectAccessible *atk_gobj= NULL; EReflow *reflow = NULL; - EBook *book; atk_gobj = ATK_GOBJECT_ACCESSIBLE (action); reflow = E_REFLOW (atk_gobject_accessible_get_object (atk_gobj)); @@ -375,26 +373,21 @@ static gboolean atk_action_interface_do_action (AtkAction *action, gint i) return FALSE; card_view = E_MINICARD_VIEW (reflow); - g_object_get(card_view, - "book", &book, - NULL); - g_return_val_if_fail (E_IS_BOOK (book), FALSE); switch (i) { case 0: /* New Contact */ - eab_show_contact_editor (book, contact, TRUE, TRUE); + e_minicard_view_create_contact (card_view); break; case 1: /* New Contact List */ - eab_show_contact_list_editor (book, contact, TRUE, TRUE); + e_minicard_view_create_contact_list (card_view); break; default: return_value = FALSE; break; } - g_object_unref (book); - g_object_unref (contact); + return return_value; } -- cgit v1.2.3