typedef enum { GNOME_APP_UI_ENDOFINFO, /* No more items, use it at the end of an array */ GNOME_APP_UI_ITEM, /* Normal item, or radio item if it is inside a radioitems group */ GNOME_APP_UI_TOGGLEITEM, /* Toggle (check box) item */ GNOME_APP_UI_RADIOITEMS, /* Radio item group */ GNOME_APP_UI_SUBTREE, /* Item that defines a subtree/submenu */ GNOME_APP_UI_SEPARATOR, /* Separator line (menus) or blank space (toolbars) */ GNOME_APP_UI_HELP, /* Create a list of help topics, used in the Help menu */ GNOME_APP_UI_BUILDER_DATA, /* Specifies the builder data for the following entries, see code for further info */ GNOME_APP_UI_ITEM_CONFIGURABLE, /* A configurable menu item. */ /* one should be careful when using * gnome_app_create_*_[custom|interp|with_data]() functions with * GnomeUIInfo arrays containing GNOME_APP_UI_BUILDER_DATA items since * their GnomeUIBuilderData structures completely override the ones * generated or supplied by the above functions. */ GNOME_APP_UI_SUBTREE_STOCK /* Item that defines a subtree/submenu, same as GNOME_APP_UI_SUBTREE, but the texts should be looked up in the gnome-libs catalog */ } GnomeUIInfoType; |
typedef enum { /* 0 */ GNOME_APP_CONFIGURABLE_ITEM_NEW, GNOME_APP_CONFIGURABLE_ITEM_OPEN, GNOME_APP_CONFIGURABLE_ITEM_SAVE, GNOME_APP_CONFIGURABLE_ITEM_SAVE_AS, GNOME_APP_CONFIGURABLE_ITEM_REVERT, GNOME_APP_CONFIGURABLE_ITEM_PRINT, GNOME_APP_CONFIGURABLE_ITEM_PRINT_SETUP, GNOME_APP_CONFIGURABLE_ITEM_CLOSE, GNOME_APP_CONFIGURABLE_ITEM_EXIT, GNOME_APP_CONFIGURABLE_ITEM_CUT, /* 10 */ GNOME_APP_CONFIGURABLE_ITEM_COPY, GNOME_APP_CONFIGURABLE_ITEM_PASTE, GNOME_APP_CONFIGURABLE_ITEM_CLEAR, GNOME_APP_CONFIGURABLE_ITEM_UNDO, GNOME_APP_CONFIGURABLE_ITEM_REDO, GNOME_APP_CONFIGURABLE_ITEM_FIND, GNOME_APP_CONFIGURABLE_ITEM_FIND_AGAIN, GNOME_APP_CONFIGURABLE_ITEM_REPLACE, GNOME_APP_CONFIGURABLE_ITEM_PROPERTIES, GNOME_APP_CONFIGURABLE_ITEM_PREFERENCES, /* 20 */ GNOME_APP_CONFIGURABLE_ITEM_ABOUT, GNOME_APP_CONFIGURABLE_ITEM_SELECT_ALL, GNOME_APP_CONFIGURABLE_ITEM_NEW_WINDOW, GNOME_APP_CONFIGURABLE_ITEM_CLOSE_WINDOW, GNOME_APP_CONFIGURABLE_ITEM_NEW_GAME, GNOME_APP_CONFIGURABLE_ITEM_PAUSE_GAME, GNOME_APP_CONFIGURABLE_ITEM_RESTART_GAME, GNOME_APP_CONFIGURABLE_ITEM_UNDO_MOVE, GNOME_APP_CONFIGURABLE_ITEM_REDO_MOVE, GNOME_APP_CONFIGURABLE_ITEM_HINT, /* 30 */ GNOME_APP_CONFIGURABLE_ITEM_SCORES, GNOME_APP_CONFIGURABLE_ITEM_END_GAME } GnomeUIInfoConfigurableTypes; |
typedef enum { GNOME_APP_PIXMAP_NONE, /* No pixmap specified */ GNOME_APP_PIXMAP_STOCK, /* Use a stock pixmap (GnomeStock) */ GNOME_APP_PIXMAP_DATA, /* Use a pixmap from inline xpm data */ GNOME_APP_PIXMAP_FILENAME /* Use a pixmap from the specified filename */ } GnomeUIPixmapType; |
typedef struct { GnomeUIInfoType type; /* Type of item */ gchar *label; /* String to use in the label */ gchar *hint; /* For toolbar items, the tooltip. For menu items, the status bar message */ gpointer moreinfo; /* For an item, toggleitem, or radioitem, this is a pointer to the function to call when the item is activated. For a subtree, a pointer to another array of GnomeUIInfo structures. For a radioitem lead entry, a pointer to an array of GnomeUIInfo structures for the radio item group. For a help item, specifies the help node to load (i.e. the application's identifier) or NULL for the main program's name. For builder data, points to the GnomeUIBuilderData structure for the following items */ gpointer user_data; /* Data pointer to pass to callbacks */ gpointer unused_data; /* Reserved for future expansion, should be NULL */ GnomeUIPixmapType pixmap_type; /* Type of pixmap for the item */ gpointer pixmap_info; /* Pointer to the pixmap information: * * For GNOME_APP_PIXMAP_STOCK, a * pointer to the stock icon name. * * For GNOME_APP_PIXMAP_DATA, a * pointer to the inline xpm data. * * For GNOME_APP_PIXMAP_FILENAME, a * pointer to the filename string. */ guint accelerator_key; /* Accelerator key, or 0 for none */ GdkModifierType ac_mods; /* Mask of modifier keys for the accelerator */ GtkWidget *widget; /* Filled in by gnome_app_create*, you can use this to tweak the widgets once they have been created */ } GnomeUIInfo; |
#define GNOMEUIINFO_END { GNOME_APP_UI_ENDOFINFO, NULL, NULL, NULL, NULL, NULL, \ (GnomeUIPixmapType) 0, NULL, 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_SEPARATOR { GNOME_APP_UI_SEPARATOR, NULL, NULL, NULL, NULL, NULL, \ (GnomeUIPixmapType) 0, NULL, 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_ITEM(label, tooltip, callback, xpm_data) \ { GNOME_APP_UI_ITEM, label, tooltip, callback, NULL, NULL, \ GNOME_APP_PIXMAP_DATA, xpm_data, 0, (GdkModifierType) 0, NULL} |
#define GNOMEUIINFO_ITEM_STOCK(label, tooltip, callback, stock_id) \ { GNOME_APP_UI_ITEM, label, tooltip, callback, NULL, NULL, \ GNOME_APP_PIXMAP_STOCK, stock_id, 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_ITEM_NONE(label, tooltip, callback) \ { GNOME_APP_UI_ITEM, label, tooltip, callback, NULL, NULL, \ GNOME_APP_PIXMAP_NONE, NULL, 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_ITEM_DATA(label, tooltip, callback, user_data, xpm_data) \ { GNOME_APP_UI_ITEM, label, tooltip, callback, user_data, NULL, \ GNOME_APP_PIXMAP_DATA, xpm_data, 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_TOGGLEITEM(label, tooltip, callback, xpm_data) \ { GNOME_APP_UI_TOGGLEITEM, label, tooltip, callback, NULL, NULL, \ GNOME_APP_PIXMAP_DATA, xpm_data, 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_TOGGLEITEM_DATA(label, tooltip, callback, user_data, xpm_data) \ { GNOME_APP_UI_TOGGLEITEM, label, tooltip, callback, \ user_data, NULL, GNOME_APP_PIXMAP_DATA, xpm_data, \ 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_HELP(app_name) \ { GNOME_APP_UI_HELP, NULL, NULL, app_name, NULL, NULL, \ (GnomeUIPixmapType) 0, NULL, 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_SUBTREE(label, tree) \ { GNOME_APP_UI_SUBTREE, label, NULL, tree, NULL, NULL, \ (GnomeUIPixmapType) 0, NULL, 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_SUBTREE_STOCK(label, tree, stock_id) \ { GNOME_APP_UI_SUBTREE, label, NULL, tree, NULL, NULL, \ GNOME_APP_PIXMAP_STOCK, stock_id, 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_RADIOLIST(list) \ { GNOME_APP_UI_RADIOITEMS, NULL, NULL, list, NULL, NULL, \ (GnomeUIPixmapType) 0, NULL, 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_RADIOITEM(label, tooltip, callback, xpm_data) \ { GNOME_APP_UI_ITEM, label, tooltip, callback, NULL, NULL, \ GNOME_APP_PIXMAP_DATA, xpm_data, 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_RADIOITEM_DATA(label, tooltip, callback, user_data, xpm_data) \ { GNOME_APP_UI_ITEM, label, tooltip, callback, \ user_data, NULL, GNOME_APP_PIXMAP_DATA, xpm_data, \ 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_ABOUT_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_ABOUT, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_CLEAR_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_CLEAR, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_CLOSE_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_CLOSE, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_CLOSE_WINDOW_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_CLOSE_WINDOW, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_COPY_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_COPY, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_CUT_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_CUT, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_EDIT_TREE(tree) \ { GNOME_APP_UI_SUBTREE_STOCK, N_("_Edit"), NULL, tree, NULL, NULL, \ (GnomeUIPixmapType) 0, NULL, 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_END_GAME_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_END_GAME, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_EXIT_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_EXIT, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_FILES_TREE(tree) \ { GNOME_APP_UI_SUBTREE_STOCK, N_("Fi_les"), NULL, tree, NULL, NULL, \ (GnomeUIPixmapType) 0, NULL, 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_FILE_TREE(tree) \ { GNOME_APP_UI_SUBTREE_STOCK, N_("_File"), NULL, tree, NULL, NULL, \ (GnomeUIPixmapType) 0, NULL, 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_FIND_AGAIN_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_FIND_AGAIN, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_FIND_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_FIND, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_GAME_TREE(tree) \ { GNOME_APP_UI_SUBTREE_STOCK, N_("_Game"), NULL, tree, NULL, NULL, \ (GnomeUIPixmapType) 0, NULL, 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_HELP_TREE(tree) \ { GNOME_APP_UI_SUBTREE_STOCK, N_("_Help"), NULL, tree, NULL, NULL, \ (GnomeUIPixmapType) 0, NULL, 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_HINT_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_HINT, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_NEW_GAME_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_NEW_GAME, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_NEW_ITEM(label, tip, cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, label, tip, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_NEW, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_NEW_SUBTREE(tree) \ { GNOME_APP_UI_SUBTREE_STOCK, N_("_New"), NULL, tree, NULL, NULL, \ GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_MENU_NEW, \ GNOME_KEY_NAME_NEW, GNOME_KEY_MOD_NEW, NULL } |
#define GNOMEUIINFO_MENU_NEW_WINDOW_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_NEW_WINDOW, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_OPEN_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_OPEN, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_PASTE_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_PASTE, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_PAUSE_GAME_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_PAUSE_GAME, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_PREFERENCES_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_PREFERENCES, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_PRINT_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_PRINT, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_PRINT_SETUP_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_PRINT_SETUP, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_PROPERTIES_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_PROPERTIES, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_REDO_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_REDO, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_REDO_MOVE_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_REDO_MOVE, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_REPLACE_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_REPLACE, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_RESTART_GAME_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_RESTART_GAME, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_REVERT_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_REVERT, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_SAVE_AS_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_SAVE_AS, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_SAVE_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_SAVE, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_SCORES_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_SCORES, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_SELECT_ALL_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_SELECT_ALL, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_SETTINGS_TREE(tree) \ { GNOME_APP_UI_SUBTREE_STOCK, N_("_Settings"), NULL, tree, NULL, NULL, \ (GnomeUIPixmapType) 0, NULL, 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_UNDO_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_UNDO, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_UNDO_MOVE_ITEM(cb, data) \ { GNOME_APP_UI_ITEM_CONFIGURABLE, NULL, NULL, \ cb, (gpointer)(data), NULL, \ GNOME_APP_PIXMAP_NONE, NULL, \ GNOME_APP_CONFIGURABLE_ITEM_UNDO_MOVE, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_VIEW_TREE(tree) \ { GNOME_APP_UI_SUBTREE_STOCK, N_("_View"), NULL, tree, NULL, NULL, \ (GnomeUIPixmapType) 0, NULL, 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_MENU_WINDOWS_TREE(tree) \ { GNOME_APP_UI_SUBTREE_STOCK, N_("_Windows"), NULL, tree, NULL, NULL, \ (GnomeUIPixmapType) 0, NULL, 0, (GdkModifierType) 0, NULL } |
#define GNOMEUIINFO_SUBTREE_HINT(label, hint, tree) \ { GNOME_APP_UI_SUBTREE, label, hint, tree, NULL, NULL, \ (GnomeUIPixmapType) 0, NULL, 0, (GdkModifierType) 0, NULL } |
struct GnomeUIBuilderData { GnomeUISignalConnectFunc connect_func; /* Function that connects to the item's signals */ gpointer data; /* User data pointer */ gboolean is_interp; /* Should use gtk_signal_connect_interp or normal gtk_signal_connect? */ GtkCallbackMarshal relay_func; /* Marshaller function for language bindings */ GtkDestroyNotify destroy_func; /* Destroy notification function for language bindings */ }; |
void (*GnomeUISignalConnectFunc) (GnomeUIInfo *uiinfo, |
void gnome_app_fill_menu ( |
Fills the specified menu shell with items created from the specified info, inserting them from the item no. pos on. If the specified accelgroup is not NULL, then the menu's hotkeys are put into that accelgroup. If accel_group is non-NULL and insert_shortcuts is TRUE, then the shortcut keys (MOD1 + underlined letters) in the items' labels will be put into the accel group as well.
void gnome_app_fill_menu_custom ( |
Fills the specified menu shell with items created from the specified info, inserting them from item no. pos on and using the specified builder data -- this is intended for language bindings. If the specified accelgroup is not NULL, then the menu's hotkeys are put into that accelgroup. If accel_group is non-NULL and insert_shortcuts is TRUE, then the shortcut keys (MOD1 + underlined letters) in the items' labels will be put into the accel group as well (this is useful for toplevel menu bars in which you want MOD1-F to activate the "_File" menu, for example).
void gnome_app_ui_configure_configurable (GnomeUIInfo *uiinfo); |
void gnome_app_create_menus (GnomeApp *app, GnomeUIInfo *uiinfo); |
Constructs a menu bar and attaches it to the specified application window.
void gnome_app_create_menus_interp (GnomeApp *app, GnomeUIInfo *uiinfo, |
void gnome_app_create_menus_with_data (GnomeApp *app, GnomeUIInfo *uiinfo, |
void gnome_app_create_menus_custom (GnomeApp *app, GnomeUIInfo *uiinfo, GnomeUIBuilderData *uibdata); |
void gnome_app_fill_toolbar ( |
void gnome_app_fill_toolbar_custom ( |
void gnome_app_create_toolbar (GnomeApp *app, GnomeUIInfo *uiinfo); |
Constructs a toolbar and attaches it to the specified application window.
void gnome_app_create_toolbar_interp (GnomeApp *app, GnomeUIInfo *uiinfo, |
Constructs a toolbar and attaches it to the specified application window -- this version is intended for language bindings.
void gnome_app_create_toolbar_with_data (GnomeApp *app, GnomeUIInfo *uiinfo, |
Constructs a toolbar, sets all the user data pointers to user_data, and attaches it to app.
void gnome_app_create_toolbar_custom (GnomeApp *app, GnomeUIInfo *uiinfo, GnomeUIBuilderData *uibdata); |
Constructs a toolbar and attaches it to the app window, using uibdata builder data -- intended for language bindings.
|
finds menu item described by path starting in the GtkMenuShell top and returns its parent GtkMenuShell and the position after this item in pos: gtk_menu_shell_insert(p, w, pos) would then insert widget w in GtkMenuShell p right after the menu item described by path.
void gnome_app_remove_menus (GnomeApp *app, |
removes num items from the existing app's menu structure beginning with item described by path
void gnome_app_remove_menu_range (GnomeApp *app, |
Same as the gnome_app_remove_menus, except it removes the specified number of items from the existing app's menu structure begining with item described by path, plus the number specified by start - very useful for adding and removing Recent document items in the File menu.
void gnome_app_insert_menus_custom (GnomeApp *app, |
inserts menus described by uiinfo in existing app's menu structure right after the item described by path.
void gnome_app_insert_menus (GnomeApp *app, |
void gnome_app_insert_menus_with_data (GnomeApp *app, |
void gnome_app_insert_menus_interp (GnomeApp *app, |
void gnome_app_install_appbar_menu_hints (GnomeAppBar *appbar, GnomeUIInfo *uiinfo); |
void gnome_app_install_statusbar_menu_hints ( |
void gnome_app_install_menu_hints (GnomeApp *app, GnomeUIInfo *uinfo); |