aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-popup.h
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-05-13 19:08:46 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-05-13 19:08:46 +0800
commitb28bcfc9e5c9febb0f4c6702e3a0426bd5e087c6 (patch)
tree0c119ed2c3fb2e7306164b61fa5643a45d643421 /e-util/e-popup.h
parent51490d54078a67793ab48584a4f672d0ae3d3bd4 (diff)
downloadgsoc2013-evolution-b28bcfc9e5c9febb0f4c6702e3a0426bd5e087c6.tar.gz
gsoc2013-evolution-b28bcfc9e5c9febb0f4c6702e3a0426bd5e087c6.tar.zst
gsoc2013-evolution-b28bcfc9e5c9febb0f4c6702e3a0426bd5e087c6.zip
if we have a factory method supplied, call that as well. More flexible
2005-05-13 Not Zed <NotZed@Ximian.com> * e-popup.c (emph_popup_factory): if we have a factory method supplied, call that as well. More flexible popup building. (emph_construct_menu): load factory def. svn path=/trunk/; revision=29352
Diffstat (limited to 'e-util/e-popup.h')
-rw-r--r--e-util/e-popup.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/e-util/e-popup.h b/e-util/e-popup.h
index d347b38d62..9da06335f5 100644
--- a/e-util/e-popup.h
+++ b/e-util/e-popup.h
@@ -236,6 +236,7 @@ typedef void (*EPopupHookFunc)(struct _EPlugin *plugin, EPopupTarget *target);
* @target_type: The target number of the type of target these menu
* items expect. It will generally also be defined by the menu id.
* @items: A list of EPopupItems.
+ * @factory: If supplied, a function to call
*
* The structure used to keep track of all of the items that a plugin
* wishes to add to a given menu. This is used internally by a factory
@@ -246,6 +247,7 @@ struct _EPopupHookMenu {
char *id; /* target menu id for these menu items */
int target_type; /* target type of this menu */
GSList *items; /* items to add to menu */
+ char *factory; /* optional factory to call for adding menu items */
};
/**