diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-11-07 07:07:04 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-11-07 07:07:04 +0800 |
commit | 3729117ec62a483b1ddc59d6a1dd4167694cde2b (patch) | |
tree | b12ec132e71f91edf7f45e93e3bbbfbd4c4f20a4 /widgets/misc/e-popup-menu.h | |
parent | cf0bdc7f09cff0ac8b834b3784655cd9a612ee4c (diff) | |
download | gsoc2013-evolution-3729117ec62a483b1ddc59d6a1dd4167694cde2b.tar gsoc2013-evolution-3729117ec62a483b1ddc59d6a1dd4167694cde2b.tar.gz gsoc2013-evolution-3729117ec62a483b1ddc59d6a1dd4167694cde2b.tar.bz2 gsoc2013-evolution-3729117ec62a483b1ddc59d6a1dd4167694cde2b.tar.lz gsoc2013-evolution-3729117ec62a483b1ddc59d6a1dd4167694cde2b.tar.xz gsoc2013-evolution-3729117ec62a483b1ddc59d6a1dd4167694cde2b.tar.zst gsoc2013-evolution-3729117ec62a483b1ddc59d6a1dd4167694cde2b.zip |
Add a submenu field to struct EPopupMenu.
2000-11-06 Jeffrey Stedfast <fejj@helixcode.com>
* gal/widgets/e-popup-menu.h: Add a submenu field to struct
EPopupMenu.
* gal/widgets/e-popup-menu.c (e_popup_menu_create): If the menu
item has a submenu field, create the submenu and attach it.
* configure.in: Bumped the micro-version because of some changes
to e-popup-menu's structure.
svn path=/trunk/; revision=6461
Diffstat (limited to 'widgets/misc/e-popup-menu.h')
-rw-r--r-- | widgets/misc/e-popup-menu.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/widgets/misc/e-popup-menu.h b/widgets/misc/e-popup-menu.h index 7039d59835..be78965a83 100644 --- a/widgets/misc/e-popup-menu.h +++ b/widgets/misc/e-popup-menu.h @@ -4,22 +4,25 @@ #include <gtk/gtkwidget.h> -typedef struct { +typedef struct _EPopupMenu EPopupMenu; + +struct _EPopupMenu { char *name; char *pixname; void (*fn) (GtkWidget *widget, void *closure); - int disable_mask; -} EPopupMenu; + EPopupMenu *submenu; + guint32 disable_mask; +}; GtkMenu *e_popup_menu_create (EPopupMenu *menu_list, - int disable_mask, - int hide_mask, + guint32 disable_mask, + guint32 hide_mask, void *closure); void e_popup_menu_run (EPopupMenu *menu_list, GdkEventButton *event, - int disable_mask, - int hide_mask, + guint32 disable_mask, + guint32 hide_mask, void *closure); #endif /* E_POPUP_MENU_H */ |