aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/addressbook-view.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-10-07 09:33:10 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-10-07 09:33:10 +0800
commitbfaace723bb0199325f79ac52c32260df9e524fb (patch)
treec172660f225d74570af10532c7de75554c7ae8b6 /addressbook/gui/component/addressbook-view.c
parent3a6b8953fef7c05efd694b922dcb3cbf1f466b16 (diff)
downloadgsoc2013-evolution-bfaace723bb0199325f79ac52c32260df9e524fb.tar
gsoc2013-evolution-bfaace723bb0199325f79ac52c32260df9e524fb.tar.gz
gsoc2013-evolution-bfaace723bb0199325f79ac52c32260df9e524fb.tar.bz2
gsoc2013-evolution-bfaace723bb0199325f79ac52c32260df9e524fb.tar.lz
gsoc2013-evolution-bfaace723bb0199325f79ac52c32260df9e524fb.tar.xz
gsoc2013-evolution-bfaace723bb0199325f79ac52c32260df9e524fb.tar.zst
gsoc2013-evolution-bfaace723bb0199325f79ac52c32260df9e524fb.zip
fix for e-popup api changes. Moved all mask specifiers to visible rather
2004-10-06 Not Zed <NotZed@Ximian.com> * gui/component/addressbook-view.c (popup_event_callback): * gui/component/select-names/e-select-names.c (section_right_click_cb): * gui/widgets/e-addressbook-view.c (do_popup_menu): fix for e-popup api changes. Moved all mask specifiers to visible rather than enable in the menu table. 2004-10-06 Not Zed <NotZed@Ximian.com> * gui/contact-editor/e-contact-editor.c: removed gnome-popup-menu.h (unused). * gui/widgets/e-addressbook-reflow-adapter.c: * gui/widgets/eab-popup-control.c: remove e-popup-menu.h (unused). * gui/component/select-names/e-select-names.c (section_right_click_cb): use e-popup. Somewhat overengineered for this use ... (remove_cb): api changes. * gui/widgets/eab-popup.c (eab_popup_target_new_select_names): added pretty useless wrapper for the select names popup. Added to hook maps. svn path=/trunk/; revision=27488
Diffstat (limited to 'addressbook/gui/component/addressbook-view.c')
-rw-r--r--addressbook/gui/component/addressbook-view.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/addressbook/gui/component/addressbook-view.c b/addressbook/gui/component/addressbook-view.c
index 48d8499a32..61a219f62e 100644
--- a/addressbook/gui/component/addressbook-view.c
+++ b/addressbook/gui/component/addressbook-view.c
@@ -741,9 +741,9 @@ primary_source_selection_changed_callback (ESourceSelector *selector,
}
static EPopupItem abv_source_popups[] = {
- { E_POPUP_ITEM, "10.new", N_("New Address Book"), new_addressbook_cb, NULL, NULL, 0 },
- { E_POPUP_ITEM, "20.delete", N_("Delete"), delete_addressbook_cb, NULL, "stock_delete", EAB_POPUP_SOURCE_USER|EAB_POPUP_SOURCE_PRIMARY },
- { E_POPUP_ITEM, "30.properties", N_("Properties..."), edit_addressbook_cb, NULL, NULL, EAB_POPUP_SOURCE_PRIMARY },
+ { E_POPUP_ITEM, "10.new", N_("New Address Book"), new_addressbook_cb, NULL, NULL, 0, 0 },
+ { E_POPUP_ITEM, "20.delete", N_("Delete"), delete_addressbook_cb, NULL, "stock_delete", 0, EAB_POPUP_SOURCE_USER|EAB_POPUP_SOURCE_PRIMARY },
+ { E_POPUP_ITEM, "30.properties", N_("Properties..."), edit_addressbook_cb, NULL, NULL, 0, EAB_POPUP_SOURCE_PRIMARY },
};
static void
@@ -770,8 +770,7 @@ popup_event_callback(ESourceSelector *selector, ESource *source, GdkEventButton
e_popup_add_items((EPopup *)ep, menus, abv_source_popup_free, view);
- /* visibility is disabled, we only disable menu items */
- menu = e_popup_create_menu_once((EPopup *)ep, (EPopupTarget *)t, 0, t->target.mask);
+ menu = e_popup_create_menu_once((EPopup *)ep, (EPopupTarget *)t, 0);
gtk_menu_popup(menu, NULL, NULL, NULL, NULL, event?event->button:0, event?event->time:gtk_get_current_event_time());
return TRUE;