[evolution] Missed one.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Missed one.
- Date: Sat, 21 Apr 2012 22:45:05 +0000 (UTC)
commit 00c060169d8410dec265d3c0d016312cc45ef969
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Apr 21 18:44:49 2012 -0400
Missed one.
modules/addressbook/e-book-shell-view-actions.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/modules/addressbook/e-book-shell-view-actions.c b/modules/addressbook/e-book-shell-view-actions.c
index 5083411..2c174a3 100644
--- a/modules/addressbook/e-book-shell-view-actions.c
+++ b/modules/addressbook/e-book-shell-view-actions.c
@@ -263,10 +263,12 @@ map_window_show_contact_editor_cb (EContactMapWindow *window,
book_shell_sidebar = book_shell_view->priv->book_shell_sidebar;
selector = e_book_shell_sidebar_get_selector (book_shell_sidebar);
- source = e_source_selector_get_primary_selection (selector);
-
+ source = e_source_selector_ref_primary_selection (selector);
g_return_if_fail (source != NULL);
+
book_client = e_book_client_new (source, &error);
+ g_object_unref (source);
+
if (error) {
g_warning ("Error loading addressbook: %s", error->message);
g_error_free (error);
@@ -312,10 +314,12 @@ action_address_book_map_cb (GtkAction *action,
book_shell_sidebar = book_shell_view->priv->book_shell_sidebar;
selector = e_book_shell_sidebar_get_selector (book_shell_sidebar);
- source = e_source_selector_get_primary_selection (selector);
-
+ source = e_source_selector_ref_primary_selection (selector);
g_return_if_fail (source != NULL);
+
book_client = e_book_client_new (source, &error);
+ g_object_unref (source);
+
if (error != NULL) {
g_warning ("Error loading addressbook: %s", error->message);
g_error_free (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]