aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/eab-popup.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/widgets/eab-popup.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/widgets/eab-popup.c')
-rw-r--r--addressbook/gui/widgets/eab-popup.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/addressbook/gui/widgets/eab-popup.c b/addressbook/gui/widgets/eab-popup.c
index d2faa40fc5..92624cb4cd 100644
--- a/addressbook/gui/widgets/eab-popup.c
+++ b/addressbook/gui/widgets/eab-popup.c
@@ -65,6 +65,11 @@ eabp_target_free(EPopup *ep, EPopupTarget *t)
g_object_unref(s->selector);
break; }
+ case EAB_POPUP_TARGET_SELECT_NAMES: {
+ EABPopupTargetSelectNames *s = (EABPopupTargetSelectNames *)t;
+
+ g_object_unref(s->model);
+ break; }
}
((EPopupClass *)eabp_parent)->target_free(ep, t);
@@ -189,6 +194,18 @@ eab_popup_target_new_source(EABPopup *eabp, ESourceSelector *selector)
return t;
}
+EABPopupTargetSelectNames *
+eab_popup_target_new_select_names(EABPopup *eabp, struct _ESelectNamesModel *model, int row)
+{
+ EABPopupTargetSelectNames *t = e_popup_target_new(&eabp->popup, EAB_POPUP_TARGET_SELECT_NAMES, sizeof(*t));
+
+ t->model = model;
+ g_object_ref(model);
+ t->row = row;
+
+ return t;
+}
+
/* ********************************************************************** */
/* Popup menu plugin handler */
@@ -231,9 +248,14 @@ static const EPopupHookTargetMask eabph_source_masks[] = {
{ 0 }
};
+static const EPopupHookTargetMask eabph_select_names_masks[] = {
+ { 0 }
+};
+
static const EPopupHookTargetMap eabph_targets[] = {
{ "select", EAB_POPUP_TARGET_SELECT, eabph_select_masks },
{ "source", EAB_POPUP_TARGET_SOURCE, eabph_source_masks },
+ { "select-names", EAB_POPUP_TARGET_SELECT_NAMES, eabph_select_names_masks },
{ 0 }
};