Example #1
0
    GNOMEUIINFO_MENU_PASTE_ITEM(cb_edit_paste, NULL),
    GNOMEUIINFO_MENU_SELECT_ALL_ITEM(cb_edit_selall, NULL),
    GNOMEUIINFO_SUBTREE(N_("Sort todolist"), sort_menu),
    {
        GNOME_APP_UI_ITEM, N_("Sort tree"), N_("Sort the selected subtree(s)"),
        cb_sort_subtree, NULL, NULL, 0, 0, (gchar)NULL, GDK_CONTROL_MASK
    },    
    GNOMEUIINFO_SUBTREE(N_("Transform"), modify_menu),
    GNOMEUIINFO_SUBTREE(N_("Text Selection"), text_selection_popup),
    {
        GNOME_APP_UI_ITEM, N_("_Delete"), N_("Delete note(s)"),
        cb_delete_dialog, NULL, NULL, GNOME_APP_PIXMAP_STOCK,
        GNOME_STOCK_PIXMAP_TRASH, GDK_d, GDK_CONTROL_MASK
    },
    GNOMEUIINFO_MENU_FIND_ITEM(cb_search_dialog, NULL),
    GNOMEUIINFO_MENU_PREFERENCES_ITEM(cb_pref_dialog, NULL),
    {
        GNOME_APP_UI_ITEM, N_("Save Preferences"),
        N_("Save preferences for yank"), cb_save_preferences, NULL, NULL,
        0, 0, (gchar)NULL, GDK_CONTROL_MASK
    },
    GNOMEUIINFO_END
};

static GnomeUIInfo misc_menu [] =
{
    GNOMEUIINFO_END
};

static GnomeUIInfo help_menu [] =
{
Example #2
0
        GNOMEUIINFO_MENU_NEW_GAME_ITEM(game_new_callback, NULL),

	GNOMEUIINFO_SEPARATOR,

	GNOMEUIINFO_MENU_SCORES_ITEM(game_top_ten_callback, NULL),

	GNOMEUIINFO_SEPARATOR,

        GNOMEUIINFO_MENU_EXIT_ITEM(game_quit_callback, NULL),

	GNOMEUIINFO_END
};

GnomeUIInfo settingsmenu[] = {
        GNOMEUIINFO_MENU_PREFERENCES_ITEM(game_preferences_callback, NULL),

	GNOMEUIINFO_END
};

GnomeUIInfo helpmenu[] = {
        GNOMEUIINFO_HELP("samegnome"),

	GNOMEUIINFO_MENU_ABOUT_ITEM(game_about_callback, NULL),

	GNOMEUIINFO_END
};

GnomeUIInfo mainmenu[] = {
	GNOMEUIINFO_MENU_GAME_TREE(gamemenu),
	GNOMEUIINFO_MENU_SETTINGS_TREE(settingsmenu),
Example #3
0
	{ GNOME_APP_UI_ITEM, N_("Zoom Out"), N_("Decrease zoom factor by 5%"),
	canvas_map_zoom_out, NULL, NULL,
	GNOME_APP_PIXMAP_NONE, NULL,
	'-', GDK_CONTROL_MASK, NULL },

	{ GNOME_APP_UI_ITEM, N_("Zoom _1:1"), N_("Display the map at 1:1 scale"),
	canvas_map_zoom_1, NULL, NULL,
	GNOME_APP_PIXMAP_NONE, NULL,
	'1', GDK_CONTROL_MASK, NULL },

	GNOMEUIINFO_END
};

static GnomeUIInfo settings_menu_uiinfo[] =
{
	GNOMEUIINFO_MENU_PREFERENCES_ITEM (on_preferences1_activate, NULL),
	GNOMEUIINFO_END
};

static GnomeUIInfo help_menu_uiinfo[] =
{
        GNOMEUIINFO_HELP("teg"),
	GNOMEUIINFO_MENU_ABOUT_ITEM (on_about_activate, NULL),
	GNOMEUIINFO_END
};

static GnomeUIInfo menubar_uiinfo[] =
{
	GNOMEUIINFO_MENU_GAME_TREE (game_menu_uiinfo),
	GNOMEUIINFO_SUBTREE(N_("_Actions"), actions_menu_uiinfo),
/*	GNOMEUIINFO_MENU_EDIT_TREE (edit_menu_uiinfo), */