diff options
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); |