closeSample(app); } static void shutdown(GtkObject *object, gpointer data) { gtk_main_quit(); } GnomeUIInfo fileMenu[] = { GNOMEUIINFO_MENU_NEW_ITEM((gchar *) "_New Sample", (gchar *) "Create a new Gnome Layout Sample", newapp, NULL), GNOMEUIINFO_MENU_OPEN_ITEM(openfile, NULL), GNOMEUIINFO_SEPARATOR, GNOMEUIINFO_MENU_CLOSE_ITEM(closeapp, NULL), GNOMEUIINFO_MENU_EXIT_ITEM(shutdown, NULL), GNOMEUIINFO_END }; GnomeUIInfo helpMenu[] = { /* GNOMEUIINFO_HELP("gnomelayout"), */ GNOMEUIINFO_MENU_ABOUT_ITEM(showabout, NULL), GNOMEUIINFO_END }; GnomeUIInfo mainMenu[] = {
* with this program; if not, write to the Free Software Foundation, Inc., * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "menus.h" /* #include "text.xpm" */ /* #include "box2.xpm" */ /* #include "circle2.xpm" */ /* #include "gnome-note.xpm" */ /* ------------------------------------------------------ */ static GnomeUIInfo file_menu [] = { GNOMEUIINFO_MENU_OPEN_ITEM(cb_file_load_dialog, NULL), GNOMEUIINFO_MENU_SAVE_ITEM(cb_save_file, NULL), GNOMEUIINFO_MENU_SAVE_AS_ITEM(cb_file_save_dialog, NULL), #ifdef USE_GNOME_PRINT { GNOME_APP_UI_ITEM, N_("Page setup"), N_("Select paper dimensions"), cb_page_setup, NULL, NULL, 0, 0, (gchar) NULL, GDK_CONTROL_MASK }, GNOMEUIINFO_MENU_PRINT_ITEM(cb_print_notes, NULL), #endif /* USE_GNOME_PRINT */ GNOMEUIINFO_SEPARATOR, GNOMEUIINFO_MENU_CLOSE_ITEM(cb_close, NULL), /* GNOMEUIINFO_MENU_EXIT_ITEM(cb_exit, NULL), */ GNOMEUIINFO_END };