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), GNOMEUIINFO_MENU_HELP_TREE(helpmenu), GNOMEUIINFO_END }; #define ELEMENTS(x) (sizeof (x) / sizeof (x [0])) static int save_state (GnomeClient *client, gint phase, GnomeSaveStyle save_style, gint shutdown, GnomeInteractStyle interact_style, gint fast, gpointer client_data)
}; 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), */ GNOMEUIINFO_MENU_VIEW_TREE (view_menu_uiinfo), GNOMEUIINFO_MENU_SETTINGS_TREE (settings_menu_uiinfo), GNOMEUIINFO_MENU_HELP_TREE (help_menu_uiinfo), GNOMEUIINFO_END }; GnomeUIInfo toolbar_main[] = { {GNOME_APP_UI_ITEM, N_("Connect"), N_("Connect to server"), on_connect_activate, NULL, NULL, GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_PIXMAP_NEW, 0, 0, NULL}, {GNOME_APP_UI_ITEM, N_("Start"), N_("Start the game"), on_start_activate, NULL, NULL, GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_PIXMAP_TIMER, 0, 0, NULL}, GNOMEUIINFO_SEPARATOR,