aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2004-06-19 00:59:26 +0800
committerChris Toshok <toshok@src.gnome.org>2004-06-19 00:59:26 +0800
commit576fae30db63ea0e6f2194bd5d77a820b86b08c0 (patch)
tree41c756acab77a987db8363928ded767a4b6c33da /addressbook/gui/component
parent4abd3bdeb5c7c246ba8ffe1710566f8d88a6b022 (diff)
downloadgsoc2013-evolution-576fae30db63ea0e6f2194bd5d77a820b86b08c0.tar.gz
gsoc2013-evolution-576fae30db63ea0e6f2194bd5d77a820b86b08c0.tar.zst
gsoc2013-evolution-576fae30db63ea0e6f2194bd5d77a820b86b08c0.zip
[ fixes bug #59376 ]
2004-06-18 Chris Toshok <toshok@ximian.com> [ fixes bug #59376 ] * gui/component/addressbook-view.c (fill_popup_menu_callback): make this work with absolute uris in sources. Thanks to Sushma Rai for the initial patch to fix this. svn path=/trunk/; revision=26421
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r--addressbook/gui/component/addressbook-view.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/addressbook/gui/component/addressbook-view.c b/addressbook/gui/component/addressbook-view.c
index b053053048..d11236e283 100644
--- a/addressbook/gui/component/addressbook-view.c
+++ b/addressbook/gui/component/addressbook-view.c
@@ -743,11 +743,13 @@ fill_popup_menu_callback (ESourceSelector *selector, GtkMenu *menu, AddressbookV
gboolean sensitive;
gboolean local_addressbook;
ESource *selected_source;
+ char *uri;
selected_source = e_source_selector_peek_primary_selection (E_SOURCE_SELECTOR (priv->selector));
sensitive = selected_source ? TRUE : FALSE;
- local_addressbook = (!strcmp ("system", e_source_peek_relative_uri (selected_source)));
+ uri = e_source_peek_relative_uri (selected_source);
+ local_addressbook = (uri && !strcmp ("system", uri));
add_popup_menu_item (menu, _("New Address Book"), NULL, G_CALLBACK (new_addressbook_cb), view, TRUE);
add_popup_menu_item (menu, _("Delete"), GTK_STOCK_DELETE, G_CALLBACK (delete_addressbook_cb), view, sensitive && !local_addressbook);