[evolution-exchange] Adapt to libedataserverui changes.



commit 6cd9c44aef52766a1f7625178b340ab279c00518
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat Apr 21 18:48:40 2012 -0400

    Adapt to libedataserverui changes.

 eplugin/exchange-folder-permission.c |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/eplugin/exchange-folder-permission.c b/eplugin/exchange-folder-permission.c
index a1ba622..fa1113f 100644
--- a/eplugin/exchange-folder-permission.c
+++ b/eplugin/exchange-folder-permission.c
@@ -362,8 +362,11 @@ is_eex_source_selected (EShellView *shell_view,
 	g_object_get (shell_sidebar, "selector", &selector, NULL);
 	g_return_val_if_fail (selector != NULL, FALSE);
 
-	source = e_source_selector_peek_primary_selection (selector);
-	uri = source ? e_source_get_uri (source) : NULL;
+	source = e_source_selector_ref_primary_selection (selector);
+	if (source != NULL) {
+		uri = e_source_get_uri (source);
+		g_object_unref (source);
+	}
 
 	g_object_unref (selector);
 
@@ -538,6 +541,7 @@ eex_folder_unsubscribe_cb (GtkAction *action,
 	if (is_eex_source_selected (shell_view, &uri)) {
 		EShellSidebar *shell_sidebar;
 		ESourceSelector *selector = NULL;
+		ESource *source;
 
 		shell_sidebar = e_shell_view_get_shell_sidebar (shell_view);
 		g_return_if_fail (shell_sidebar != NULL);
@@ -545,7 +549,9 @@ eex_folder_unsubscribe_cb (GtkAction *action,
 		g_object_get (shell_sidebar, "selector", &selector, NULL);
 		g_return_if_fail (selector != NULL);
 
-		call_folder_unsubscribe (name + 1, uri, e_source_selector_peek_primary_selection (selector));
+		source = e_source_selector_ref_primary_selection (selector);
+		call_folder_unsubscribe (name + 1, uri, source);
+		g_object_unref (source);
 	}
 
 	g_free (uri);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]