diff options
author | Chris Toshok <toshok@ximian.com> | 2004-06-19 00:59:26 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2004-06-19 00:59:26 +0800 |
commit | 576fae30db63ea0e6f2194bd5d77a820b86b08c0 (patch) | |
tree | 41c756acab77a987db8363928ded767a4b6c33da /addressbook | |
parent | 4abd3bdeb5c7c246ba8ffe1710566f8d88a6b022 (diff) | |
download | gsoc2013-evolution-576fae30db63ea0e6f2194bd5d77a820b86b08c0.tar gsoc2013-evolution-576fae30db63ea0e6f2194bd5d77a820b86b08c0.tar.gz gsoc2013-evolution-576fae30db63ea0e6f2194bd5d77a820b86b08c0.tar.bz2 gsoc2013-evolution-576fae30db63ea0e6f2194bd5d77a820b86b08c0.tar.lz gsoc2013-evolution-576fae30db63ea0e6f2194bd5d77a820b86b08c0.tar.xz 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')
-rw-r--r-- | addressbook/ChangeLog | 8 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook-view.c | 4 |
2 files changed, 11 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 47191c10ef..a439fab076 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,11 @@ +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. + 2004-06-17 Chris Toshok <toshok@ximian.com> [ fixes bug #58696 ] 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); |