comparison finch/libgnt/gntmenu.h @ 15931:f00f2e283ffb

Some define changes. This helps in generating the python bindings.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 26 Mar 2007 04:10:39 +0000
parents 0e3a8505ebbe
children 8410511f4dbb
comparison
equal deleted inserted replaced
15930:846a00760176 15931:f00f2e283ffb
14 14
15 #define GNT_MENU_FLAGS(obj) (GNT_MENU(obj)->priv.flags) 15 #define GNT_MENU_FLAGS(obj) (GNT_MENU(obj)->priv.flags)
16 #define GNT_MENU_SET_FLAGS(obj, flags) (GNT_MENU_FLAGS(obj) |= flags) 16 #define GNT_MENU_SET_FLAGS(obj, flags) (GNT_MENU_FLAGS(obj) |= flags)
17 #define GNT_MENU_UNSET_FLAGS(obj, flags) (GNT_MENU_FLAGS(obj) &= ~(flags)) 17 #define GNT_MENU_UNSET_FLAGS(obj, flags) (GNT_MENU_FLAGS(obj) &= ~(flags))
18 18
19 typedef struct _GnMenu GntMenu; 19 typedef struct _GntMenu GntMenu;
20 typedef struct _GnMenuPriv GntMenuPriv; 20 typedef struct _GntMenuPriv GntMenuPriv;
21 typedef struct _GnMenuClass GntMenuClass; 21 typedef struct _GntMenuClass GntMenuClass;
22 22
23 #include "gntmenuitem.h" 23 #include "gntmenuitem.h"
24 24
25 /** 25 /**
26 * A toplevel-menu is displayed at the top of the screen, and it spans accross 26 * A toplevel-menu is displayed at the top of the screen, and it spans accross
31 { 31 {
32 GNT_MENU_TOPLEVEL = 1, /* Menu for a toplevel window */ 32 GNT_MENU_TOPLEVEL = 1, /* Menu for a toplevel window */
33 GNT_MENU_POPUP, /* A popup menu */ 33 GNT_MENU_POPUP, /* A popup menu */
34 } GntMenuType; 34 } GntMenuType;
35 35
36 struct _GnMenu 36 struct _GntMenu
37 { 37 {
38 GntTree parent; 38 GntTree parent;
39 GntMenuType type; 39 GntMenuType type;
40 40
41 GList *list; 41 GList *list;
45 * keystrokes can be passed to it. */ 45 * keystrokes can be passed to it. */
46 GntMenu *submenu; 46 GntMenu *submenu;
47 GntMenu *parentmenu; 47 GntMenu *parentmenu;
48 }; 48 };
49 49
50 struct _GnMenuClass 50 struct _GntMenuClass
51 { 51 {
52 GntTreeClass parent; 52 GntTreeClass parent;
53 53
54 void (*gnt_reserved1)(void); 54 void (*gnt_reserved1)(void);
55 void (*gnt_reserved2)(void); 55 void (*gnt_reserved2)(void);