aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-menu.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-01-05 15:49:44 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-01-05 15:49:44 +0800
commit2e323c2f2c622682831644fdecff3f7fe68736c2 (patch)
treecbfbb75e200731b2e9c33af5402f2435a998982c /mail/em-menu.c
parent19e2fea988754f3f4f43667e30463bd7fd4e18cc (diff)
downloadgsoc2013-evolution-2e323c2f2c622682831644fdecff3f7fe68736c2.tar
gsoc2013-evolution-2e323c2f2c622682831644fdecff3f7fe68736c2.tar.gz
gsoc2013-evolution-2e323c2f2c622682831644fdecff3f7fe68736c2.tar.bz2
gsoc2013-evolution-2e323c2f2c622682831644fdecff3f7fe68736c2.tar.lz
gsoc2013-evolution-2e323c2f2c622682831644fdecff3f7fe68736c2.tar.xz
gsoc2013-evolution-2e323c2f2c622682831644fdecff3f7fe68736c2.tar.zst
gsoc2013-evolution-2e323c2f2c622682831644fdecff3f7fe68736c2.zip
add a semi-dummy target for widget target.
2005-01-05 Not Zed <NotZed@Ximian.com> * em-menu.c (em_menu_target_new_widget): add a semi-dummy target for widget target. svn path=/trunk/; revision=28242
Diffstat (limited to 'mail/em-menu.c')
-rw-r--r--mail/em-menu.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/mail/em-menu.c b/mail/em-menu.c
index c7e70b272f..a80e4fb153 100644
--- a/mail/em-menu.c
+++ b/mail/em-menu.c
@@ -236,6 +236,27 @@ em_menu_target_new_select(EMMenu *emp, struct _CamelFolder *folder, const char *
return t;
}
+/**
+ * em_menu_target_new_window:
+ * @emp:
+ * @window:
+ *
+ * create a dummy target which references some sort of widget.
+ *
+ * Return value:
+ **/
+EMMenuTargetWidget *
+em_menu_target_new_widget(EMMenu *emp, struct _GtkWidget *w)
+{
+ EMMenuTargetWidget *t = e_menu_target_new(&emp->popup, EM_MENU_TARGET_WIDGET, sizeof(*t));
+ guint32 mask = ~0;
+
+ t->target.mask = mask;
+ t->target.widget = w;
+
+ return t;
+}
+
static void
emp_standard_menu_factory(EMenu *emp, void *data)
{