-static GtkActionGroupEntry entries[] = {
- { "Menu1Action", N_("Menu _1"), NULL, NULL, NULL, NULL, NULL },
- { "Menu2Action", N_("Menu _2"), NULL, NULL, NULL, NULL, NULL },
-
- { "cut", N_("C_ut"), GTK_STOCK_CUT, "<control>X",
- N_("Cut the selected text to the clipboard"),
- G_CALLBACK (activate_action), NULL },
- { "copy", N_("_Copy"), GTK_STOCK_COPY, "<control>C",
- N_("Copy the selected text to the clipboard"),
- G_CALLBACK (activate_action), NULL },
- { "paste", N_("_Paste"), GTK_STOCK_PASTE, "<control>V",
- N_("Paste the text from the clipboard"),
- G_CALLBACK (activate_action), NULL },
- { "bold", N_("_Bold"), GTK_STOCK_BOLD, "<control>B",
- N_("Change to bold face"),
- G_CALLBACK (toggle_action), NULL, GTK_ACTION_TOGGLE },
-
- { "justify-left", N_("_Left"), GTK_STOCK_JUSTIFY_LEFT, "<control>L",
- N_("Left justify the text"),
- G_CALLBACK (toggle_action), NULL, GTK_ACTION_RADIO },
- { "justify-center", N_("C_enter"), GTK_STOCK_JUSTIFY_CENTER, "<control>E",
- N_("Center justify the text"),
- G_CALLBACK (toggle_action), NULL, GTK_ACTION_RADIO, "justify-left" },
- { "justify-right", N_("_Right"), GTK_STOCK_JUSTIFY_RIGHT, "<control>R",
- N_("Right justify the text"),
- G_CALLBACK (toggle_action), NULL, GTK_ACTION_RADIO, "justify-left" },
- { "justify-fill", N_("_Fill"), GTK_STOCK_JUSTIFY_FILL, "<control>J",
- N_("Fill justify the text"),
- G_CALLBACK (toggle_action), NULL, GTK_ACTION_RADIO, "justify-left" },
- { "quit", NULL, GTK_STOCK_QUIT, "<control>Q",
- N_("Quit the application"),
- G_CALLBACK (gtk_main_quit), NULL },
- { "toggle-cnp", N_("Enable Cut/Copy/Paste"), NULL, NULL,
- N_("Change the sensitivity of the cut, copy and paste actions"),
- G_CALLBACK (toggle_cnp_actions), NULL, GTK_ACTION_TOGGLE },
- { "customise-accels", N_("Customise _Accels"), NULL, NULL,
- N_("Customise keyboard shortcuts"),
- G_CALLBACK (show_accel_dialog), NULL },
- { "toolbar-icons", N_("Icons"), NULL, NULL,
- NULL, G_CALLBACK (toolbar_style), GINT_TO_POINTER (GTK_TOOLBAR_ICONS),
- GTK_ACTION_RADIO, NULL },
- { "toolbar-text", N_("Text"), NULL, NULL,
- NULL, G_CALLBACK (toolbar_style), GINT_TO_POINTER (GTK_TOOLBAR_TEXT),
- GTK_ACTION_RADIO, "toolbar-icons" },
- { "toolbar-both", N_("Both"), NULL, NULL,
- NULL, G_CALLBACK (toolbar_style), GINT_TO_POINTER (GTK_TOOLBAR_BOTH),
- GTK_ACTION_RADIO, "toolbar-icons" },
- { "toolbar-both-horiz", N_("Both Horizontal"), NULL, NULL,
- NULL, G_CALLBACK (toolbar_style), GINT_TO_POINTER(GTK_TOOLBAR_BOTH_HORIZ),
- GTK_ACTION_RADIO, "toolbar-icons" },
- { "toolbar-small-icons", N_("Small Icons"), NULL, NULL,
- NULL,
- G_CALLBACK (toolbar_size), GINT_TO_POINTER (GTK_ICON_SIZE_SMALL_TOOLBAR) },
- { "toolbar-large-icons", N_("Large Icons"), NULL, NULL,
- NULL,
- G_CALLBACK (toolbar_size), GINT_TO_POINTER (GTK_ICON_SIZE_LARGE_TOOLBAR) },
+static GtkActionEntry entries[] = {
+ { "Menu1Action", NULL, "Menu _1" },
+ { "Menu2Action", NULL, "Menu _2" },
+ { "Menu3Action", NULL, "_Dynamic Menu" },
+
+ { "attach", "mail-attachment", "_Attachment...", "<Control>m",
+ "Attach a file", G_CALLBACK (activate_action) },
+ { "cut", GTK_STOCK_CUT, "C_ut", "<control>X",
+ "Cut the selected text to the clipboard", G_CALLBACK (activate_action) },
+ { "copy", GTK_STOCK_COPY, "_Copy", "<control>C",
+ "Copy the selected text to the clipboard", G_CALLBACK (activate_action) },
+ { "paste", GTK_STOCK_PASTE, "_Paste", "<control>V",
+ "Paste the text from the clipboard", G_CALLBACK (activate_action) },
+ { "quit", GTK_STOCK_QUIT, NULL, "<control>Q",
+ "Quit the application", G_CALLBACK (gtk_main_quit) },
+ { "customise-accels", NULL, "Customise _Accels", NULL,
+ "Customise keyboard shortcuts", G_CALLBACK (show_accel_dialog) },
+ { "toolbar-small-icons", NULL, "Small Icons", NULL,
+ NULL, G_CALLBACK (toolbar_size_small) },
+ { "toolbar-large-icons", NULL, "Large Icons", NULL,
+ NULL, G_CALLBACK (toolbar_size_large) }