}
}
-static const GtkActionEntry entries[] = {
- { "File", NULL, N_("_File") },
- { "WindowNew", STOCK_WINDOW_NEW,
- N_("New _Window"), "<Ctrl>n",
- N_("Open a new window"), G_CALLBACK (_action_window_new_activate) },
- { "TabNew", STOCK_TAB_NEW,
- NULL, "<Ctrl>t",
- N_("Open a new tab"), G_CALLBACK (_action_tab_new_activate) },
- { "PrivateBrowsing", NULL,
- N_("P_rivate Browsing"), "<Ctrl><Shift>n",
- N_("Don't save any private data while browsing"),
- G_CALLBACK (_action_private_browsing_activate), },
- { "Open", GTK_STOCK_OPEN,
- NULL, "<Ctrl>o",
- N_("Open a file"), G_CALLBACK (_action_open_activate) },
- { "SaveAs", GTK_STOCK_SAVE_AS,
- NULL, "<Ctrl>s",
- N_("Save to a file"), G_CALLBACK (_action_save_as_activate) },
- { "AddSpeedDial", NULL,
- N_("Add to Speed _dial"), "<Ctrl>h",
- N_("Add shortcut to speed dial"), G_CALLBACK (_action_add_speed_dial_activate) },
- { "AddDesktopShortcut", NULL,
- N_("Add Shortcut to the _desktop"), "<Ctrl>h",
- N_("Add shortcut to the desktop"), G_CALLBACK (_action_add_desktop_shortcut_activate) },
- { "AddNewsFeed", NULL,
- N_("Subscribe to News _feed"), NULL,
- N_("Subscribe to this news feed"), G_CALLBACK (_action_add_news_feed_activate) },
- { "CompactAdd", GTK_STOCK_ADD,
- NULL, NULL,
- NULL, G_CALLBACK (_action_compact_add_activate) },
- { "TabClose", GTK_STOCK_CLOSE,
- N_("_Close Tab"), "<Ctrl>w",
- N_("Close the current tab"), G_CALLBACK (_action_tab_close_activate) },
- { "WindowClose", NULL,
- N_("C_lose Window"), "<Ctrl><Shift>w",
- N_("Close this window"), G_CALLBACK (_action_window_close_activate) },
- { "Print", GTK_STOCK_PRINT,
- NULL, "<Ctrl>p",
- N_("Print the current page"), G_CALLBACK (_action_print_activate) },
- { "Quit", GTK_STOCK_QUIT,
- NULL, "<Ctrl>q",
- N_("Quit the application"), G_CALLBACK (_action_quit_activate) },
-
- { "Edit", NULL, N_("_Edit"), NULL, NULL, G_CALLBACK (_action_edit_activate) },
- #if WEBKIT_CHECK_VERSION (1, 1, 14)
- { "Undo", GTK_STOCK_UNDO,
- NULL, "<Ctrl>z",
- N_("Undo the last modification"), G_CALLBACK (_action_undo_activate) },
- { "Redo", GTK_STOCK_REDO,
- NULL, "<Ctrl><Shift>z",
- N_("Redo the last modification"), G_CALLBACK (_action_redo_activate) },
- #endif
- { "Cut", GTK_STOCK_CUT,
- NULL, "<Ctrl>x",
- N_("Cut the selected text"), G_CALLBACK (_action_cut_activate) },
- { "Copy", GTK_STOCK_COPY,
- NULL, "<Ctrl>c",
- N_("Copy the selected text"), G_CALLBACK (_action_copy_activate) },
- { "Copy_", GTK_STOCK_COPY,
- NULL, "<Ctrl>c",
- N_("Copy the selected text"), G_CALLBACK (_action_copy_activate) },
- { "Paste", GTK_STOCK_PASTE,
- NULL, "<Ctrl>v",
- N_("Paste text from the clipboard"), G_CALLBACK (_action_paste_activate) },
- { "Delete", GTK_STOCK_DELETE,
- NULL, NULL,
- N_("Delete the selected text"), G_CALLBACK (_action_delete_activate) },
- { "SelectAll", GTK_STOCK_SELECT_ALL,
- NULL, "<Ctrl>a",
- N_("Select all text"), G_CALLBACK (_action_select_all_activate) },
- { "Find", GTK_STOCK_FIND,
- NULL, "<Ctrl>f",
- N_("Find a word or phrase in the page"), G_CALLBACK (_action_find_activate) },
- { "FindNext", GTK_STOCK_GO_FORWARD,
- N_("Find _Next"), "<Ctrl>g",
- N_("Find the next occurrence of a word or phrase"), G_CALLBACK (_action_find_next_activate) },
- { "FindPrevious", GTK_STOCK_GO_BACK,
- N_("Find _Previous"), "<Ctrl><Shift>g",
- N_("Find the previous occurrence of a word or phrase"),
- G_CALLBACK (_action_find_previous_activate) },
- { "Preferences", GTK_STOCK_PREFERENCES,
- NULL, "<Ctrl><Alt>p",
- N_("Configure the application preferences"), G_CALLBACK (_action_preferences_activate) },
-
- { "View", NULL, N_("_View") },
- { "Toolbars", NULL, N_("_Toolbars") },
- { "Reload", GTK_STOCK_REFRESH,
- NULL, "<Ctrl>r",
- N_("Reload the current page"), G_CALLBACK (_action_reload_stop_activate) },
- { "Stop", GTK_STOCK_STOP,
- NULL, "Escape",
- N_("Stop loading the current page"), G_CALLBACK (_action_reload_stop_activate) },
- { "ReloadStop", GTK_STOCK_STOP,
- NULL, "<Ctrl>r",
- N_("Reload the current page"), G_CALLBACK (_action_reload_stop_activate) },
- { "ZoomIn", GTK_STOCK_ZOOM_IN,
- NULL, "<Ctrl>plus",
- N_("Increase the zoom level"), G_CALLBACK (_action_zoom_in_activate) },
- { "ZoomOut", GTK_STOCK_ZOOM_OUT,
- NULL, "<Ctrl>minus",
- N_("Decrease the zoom level"), G_CALLBACK (_action_zoom_out_activate) },
- { "ZoomNormal", GTK_STOCK_ZOOM_100,
- NULL, "<Ctrl>0",
- N_("Reset the zoom level"), G_CALLBACK (_action_zoom_normal_activate) },
- { "Encoding", NULL, N_("_Encoding") },
- { "SourceView", NULL,
- N_("View So_urce"), "<Ctrl><Alt>U",
- N_("View the source code of the page"), G_CALLBACK (_action_source_view_activate) },
- { "Fullscreen", GTK_STOCK_FULLSCREEN,
- NULL, "F11",
- N_("Toggle fullscreen view"), G_CALLBACK (_action_fullscreen_activate) },
- #if WEBKIT_CHECK_VERSION (1, 1, 4)
- { "ScrollLeft", NULL,
- N_("Scroll _Left"), "h",
- N_("Scroll to the left"), G_CALLBACK (_action_scroll_somewhere_activate) },
- { "ScrollDown", NULL,
- N_("Scroll _Down"), "j",
- N_("Scroll down"), G_CALLBACK (_action_scroll_somewhere_activate) },
- { "ScrollUp", NULL,
- N_("Scroll _Up"), "k",
- N_("Scroll up"), G_CALLBACK (_action_scroll_somewhere_activate) },
- { "ScrollRight", NULL,
- N_("Scroll _Right"), "l",
- N_("Scroll to the right"), G_CALLBACK (_action_scroll_somewhere_activate) },
- #endif
-
- { "Go", NULL, N_("_Go") },
- { "Back", GTK_STOCK_GO_BACK,
- NULL, "<Alt>Left",
- N_("Go back to the previous page"), G_CALLBACK (_action_back_activate) },
- { "Forward", GTK_STOCK_GO_FORWARD,
- NULL, "<Alt>Right",
- N_("Go forward to the next page"), G_CALLBACK (_action_forward_activate) },
- { "Previous", GTK_STOCK_MEDIA_PREVIOUS,
- NULL, "<Ctrl>Left",
- /* i18n: Visit the previous logical page, ie. in a forum or blog */
- N_("Go to the previous sub-page"), G_CALLBACK (_action_previous_activate) },
- { "Next", GTK_STOCK_MEDIA_NEXT,
- NULL, "<Ctrl>Right",
- /* i18n: Visit the following logical page, ie. in a forum or blog */
- N_("Go to the next sub-page"), G_CALLBACK (_action_next_activate) },
- { "Homepage", STOCK_HOMEPAGE,
- NULL, "<Alt>Home",
- N_("Go to your homepage"), G_CALLBACK (_action_homepage_activate) },
- { "TrashEmpty", GTK_STOCK_CLEAR,
- N_("Empty Trash"), "",
- N_("Delete the contents of the trash"), G_CALLBACK (_action_trash_empty_activate) },
- { "UndoTabClose", GTK_STOCK_UNDELETE,
- N_("Undo _Close Tab"), "<Ctrl><Shift>t",
- N_("Open the last closed tab"), G_CALLBACK (_action_undo_tab_close_activate) },
-
- { "BookmarkAdd", STOCK_BOOKMARK_ADD,
- NULL, "<Ctrl>d",
- N_("Add a new bookmark"), G_CALLBACK (_action_bookmark_add_activate) },
- { "BookmarkFolderAdd", NULL,
- N_("Add a new _folder"), "",
- N_("Add a new bookmark folder"), G_CALLBACK (_action_bookmark_folder_add_activate) },
- { "BookmarksImport", NULL,
- N_("_Import bookmarks"), "",
- NULL, G_CALLBACK (_action_bookmarks_import_activate) },
- { "BookmarksExport", NULL,
- N_("_Export bookmarks"), "",
- NULL, G_CALLBACK (_action_bookmarks_export_activate) },
- { "ManageSearchEngines", GTK_STOCK_PROPERTIES,
- N_("_Manage Search Engines"), "<Ctrl><Alt>s",
- N_("Add, edit and remove search engines..."),
- G_CALLBACK (_action_manage_search_engines_activate) },
- { "ClearPrivateData", NULL,
- N_("_Clear Private Data"), "<Ctrl><Shift>Delete",
- N_("Clear private data..."),
- G_CALLBACK (_action_clear_private_data_activate) },
- #if WEBKIT_CHECK_VERSION (1, 1, 17)
- { "InspectPage", NULL,
- N_("_Inspect Page"), "<Ctrl><Shift>i",
- N_("Inspect page details and access developer tools..."),
- G_CALLBACK (_action_inspect_page_activate) },
- #endif
-
- { "TabPrevious", GTK_STOCK_GO_BACK,
- N_("_Previous Tab"), "<Ctrl>Page_Up",
- N_("Switch to the previous tab"), G_CALLBACK (_action_tab_previous_activate) },
- { "TabNext", GTK_STOCK_GO_FORWARD,
- N_("_Next Tab"), "<Ctrl>Page_Down",
- N_("Switch to the next tab"), G_CALLBACK (_action_tab_next_activate) },
- { "TabCurrent", NULL,
- N_("Focus _Current Tab"), "<Ctrl>Home",
- N_("Focus the current tab"), G_CALLBACK (_action_tab_current_activate) },
- { "LastSession", NULL,
- N_("Open last _session"), NULL,
- N_("Open the tabs saved in the last session"), NULL },
-
- { "Help", NULL, N_("_Help") },
- { "HelpContents", GTK_STOCK_HELP,
- N_("_Contents"), "F1",
- N_("Show the documentation"), G_CALLBACK (_action_help_link_activate) },
- { "HelpFAQ", NULL,
- N_("_Frequent Questions"), NULL,
- N_("Show the Frequently Asked Questions"), G_CALLBACK (_action_help_link_activate) },
- { "HelpBugs", NULL,
- N_("_Report a Bug"), NULL,
- N_("Open Midori's bug tracker"), G_CALLBACK (_action_help_link_activate) },
- { "About", GTK_STOCK_ABOUT,
- NULL, "",
- N_("Show information about the program"), G_CALLBACK (_action_about_activate) },
- { "Dummy", NULL, "Dummy" },
- };
- static const guint entries_n = G_N_ELEMENTS (entries);
-
-static const GtkToggleActionEntry toggle_entries[] = {
- { "Menubar", NULL,
- N_("_Menubar"), "",
- N_("Show menubar"), G_CALLBACK (_action_menubar_activate),
- FALSE },
- { "Navigationbar", NULL,
- N_("_Navigationbar"), "",
- N_("Show navigationbar"), G_CALLBACK (_action_navigationbar_activate),
- FALSE },
- { "Panel", GTK_STOCK_INDENT,
- N_("Side_panel"), "F9",
- N_("Show sidepanel"), G_CALLBACK (_action_panel_activate),
- FALSE },
- { "Bookmarkbar", NULL,
- N_("_Bookmarkbar"), "",
- N_("Show bookmarkbar"), G_CALLBACK (_action_bookmarkbar_activate),
- FALSE },
- { "Transferbar", NULL,
- N_("_Transferbar"), "",
- N_("Show transferbar"), G_CALLBACK (_action_transferbar_activate),
- FALSE },
- { "Statusbar", NULL,
- N_("_Statusbar"), "",
- N_("Show statusbar"), G_CALLBACK (_action_statusbar_activate),
- FALSE },
- };
- static const guint toggle_entries_n = G_N_ELEMENTS (toggle_entries);
-
-static const GtkRadioActionEntry encoding_entries[] = {
-{ "EncodingAutomatic", NULL,
- N_("_Automatic"), "",
- NULL, 1 },
- { "EncodingChinese", NULL,
- N_("Chinese (BIG5)"), "",
- NULL, 1 },
- { "EncodingJapanese", NULL,
- /* i18n: A double underscore "__" is used to prevent an unwanted mnemonic */
- N_("Japanese (SHIFT__JIS)"), "",
- NULL, 1 },
- { "EncodingKorean", NULL,
- N_("Korean (EUC-KR)"), "",
- NULL, 1 },
- { "EncodingRussian", NULL,
- N_("Russian (KOI8-R)"), "",
- NULL, 1 },
- { "EncodingUnicode", NULL,
- N_("Unicode (UTF-8)"), "",
- NULL, 1 },
- { "EncodingWestern", NULL,
- N_("Western (ISO-8859-1)"), "",
- NULL, 1 },
- { "EncodingCustom", NULL,
- N_("Custom..."), "",
- NULL, 1 },
- };
- static const guint encoding_entries_n = G_N_ELEMENTS (encoding_entries);
+static const GtkActionEntry entries[] =
+{
+ { "File", NULL, N_("_File") },
+ { "WindowNew", STOCK_WINDOW_NEW,
+ N_("New _Window"), "<Ctrl>n",
+ N_("Open a new window"), G_CALLBACK (_action_window_new_activate) },
+ { "TabNew", STOCK_TAB_NEW,
+ NULL, "<Ctrl>t",
+ N_("Open a new tab"), G_CALLBACK (_action_tab_new_activate) },
+ { "PrivateBrowsing", NULL,
+ N_("P_rivate Browsing"), "<Ctrl><Shift>n",
+ N_("Don't save any private data while browsing"),
+ G_CALLBACK (_action_private_browsing_activate), },
+ { "Open", GTK_STOCK_OPEN,
+ NULL, "<Ctrl>o",
+ N_("Open a file"), G_CALLBACK (_action_open_activate) },
+ { "SaveAs", GTK_STOCK_SAVE_AS,
+ NULL, "<Ctrl>s",
+ N_("Save to a file"), G_CALLBACK (_action_save_as_activate) },
+ { "AddSpeedDial", NULL,
+ N_("Add to Speed _dial"), "<Ctrl>h",
+ N_("Add shortcut to speed dial"), G_CALLBACK (_action_add_speed_dial_activate) },
+ { "AddDesktopShortcut", NULL,
+ N_("Add Shortcut to the _desktop"), "<Ctrl>h",
+ N_("Add shortcut to the desktop"), G_CALLBACK (_action_add_desktop_shortcut_activate) },
+ { "AddNewsFeed", NULL,
+ N_("Subscribe to News _feed"), NULL,
+ N_("Subscribe to this news feed"), G_CALLBACK (_action_add_news_feed_activate) },
+ { "CompactAdd", GTK_STOCK_ADD,
+ NULL, NULL,
+ NULL, G_CALLBACK (_action_compact_add_activate) },
+ { "TabClose", GTK_STOCK_CLOSE,
+ N_("_Close Tab"), "<Ctrl>w",
+ N_("Close the current tab"), G_CALLBACK (_action_tab_close_activate) },
+ { "WindowClose", NULL,
+ N_("C_lose Window"), "<Ctrl><Shift>w",
+ N_("Close this window"), G_CALLBACK (_action_window_close_activate) },
+ { "Print", GTK_STOCK_PRINT,
+ NULL, "<Ctrl>p",
+ N_("Print the current page"), G_CALLBACK (_action_print_activate) },
+ { "Quit", GTK_STOCK_QUIT,
+ NULL, "<Ctrl>q",
+ N_("Quit the application"), G_CALLBACK (_action_quit_activate) },
+
+ { "Edit", NULL, N_("_Edit"), NULL, NULL, G_CALLBACK (_action_edit_activate) },
+ #if WEBKIT_CHECK_VERSION (1, 1, 14)
+ { "Undo", GTK_STOCK_UNDO,
+ NULL, "<Ctrl>z",
+ N_("Undo the last modification"), G_CALLBACK (_action_undo_activate) },
+ { "Redo", GTK_STOCK_REDO,
+ NULL, "<Ctrl><Shift>z",
+ N_("Redo the last modification"), G_CALLBACK (_action_redo_activate) },
+ #endif
+ { "Cut", GTK_STOCK_CUT,
+ NULL, "<Ctrl>x",
+ N_("Cut the selected text"), G_CALLBACK (_action_cut_activate) },
+ { "Copy", GTK_STOCK_COPY,
+ NULL, "<Ctrl>c",
+ N_("Copy the selected text"), G_CALLBACK (_action_copy_activate) },
+ { "Copy_", GTK_STOCK_COPY,
+ NULL, "<Ctrl>c",
+ N_("Copy the selected text"), G_CALLBACK (_action_copy_activate) },
+ { "Paste", GTK_STOCK_PASTE,
+ NULL, "<Ctrl>v",
+ N_("Paste text from the clipboard"), G_CALLBACK (_action_paste_activate) },
+ { "Delete", GTK_STOCK_DELETE,
+ NULL, NULL,
+ N_("Delete the selected text"), G_CALLBACK (_action_delete_activate) },
+ { "SelectAll", GTK_STOCK_SELECT_ALL,
+ NULL, "<Ctrl>a",
+ N_("Select all text"), G_CALLBACK (_action_select_all_activate) },
+ { "Find", GTK_STOCK_FIND,
+ NULL, "<Ctrl>f",
+ N_("Find a word or phrase in the page"), G_CALLBACK (_action_find_activate) },
+ { "FindNext", GTK_STOCK_GO_FORWARD,
+ N_("Find _Next"), "<Ctrl>g",
+ N_("Find the next occurrence of a word or phrase"), G_CALLBACK (_action_find_next_activate) },
+ { "FindPrevious", GTK_STOCK_GO_BACK,
+ N_("Find _Previous"), "<Ctrl><Shift>g",
+ N_("Find the previous occurrence of a word or phrase"),
+ G_CALLBACK (_action_find_previous_activate) },
+ { "Preferences", GTK_STOCK_PREFERENCES,
+ NULL, "<Ctrl><Alt>p",
+ N_("Configure the application preferences"), G_CALLBACK (_action_preferences_activate) },
+
+ { "View", NULL, N_("_View") },
+ { "Toolbars", NULL, N_("_Toolbars") },
+ { "Reload", GTK_STOCK_REFRESH,
+ NULL, "<Ctrl>r",
+ N_("Reload the current page"), G_CALLBACK (_action_reload_stop_activate) },
+ { "Stop", GTK_STOCK_STOP,
+ NULL, "Escape",
+ N_("Stop loading the current page"), G_CALLBACK (_action_reload_stop_activate) },
+ { "ReloadStop", GTK_STOCK_STOP,
+ NULL, "<Ctrl>r",
+ N_("Reload the current page"), G_CALLBACK (_action_reload_stop_activate) },
+ { "ZoomIn", GTK_STOCK_ZOOM_IN,
+ NULL, "<Ctrl>plus",
+ N_("Increase the zoom level"), G_CALLBACK (_action_zoom_in_activate) },
+ { "ZoomOut", GTK_STOCK_ZOOM_OUT,
+ NULL, "<Ctrl>minus",
+ N_("Decrease the zoom level"), G_CALLBACK (_action_zoom_out_activate) },
+ { "ZoomNormal", GTK_STOCK_ZOOM_100,
+ NULL, "<Ctrl>0",
+ N_("Reset the zoom level"), G_CALLBACK (_action_zoom_normal_activate) },
+ { "Encoding", NULL, N_("_Encoding") },
+ { "SourceView", NULL,
+ N_("View So_urce"), "<Ctrl><Alt>U",
+ N_("View the source code of the page"), G_CALLBACK (_action_source_view_activate) },
+ { "Fullscreen", GTK_STOCK_FULLSCREEN,
+ NULL, "F11",
+ N_("Toggle fullscreen view"), G_CALLBACK (_action_fullscreen_activate) },
+ #if WEBKIT_CHECK_VERSION (1, 1, 4)
+ { "ScrollLeft", NULL,
+ N_("Scroll _Left"), "h",
+ N_("Scroll to the left"), G_CALLBACK (_action_scroll_somewhere_activate) },
+ { "ScrollDown", NULL,
+ N_("Scroll _Down"), "j",
+ N_("Scroll down"), G_CALLBACK (_action_scroll_somewhere_activate) },
+ { "ScrollUp", NULL,
+ N_("Scroll _Up"), "k",
+ N_("Scroll up"), G_CALLBACK (_action_scroll_somewhere_activate) },
+ { "ScrollRight", NULL,
+ N_("Scroll _Right"), "l",
+ N_("Scroll to the right"), G_CALLBACK (_action_scroll_somewhere_activate) },
+ #endif
+
+ { "Go", NULL, N_("_Go") },
+ { "Back", GTK_STOCK_GO_BACK,
+ NULL, "<Alt>Left",
+ N_("Go back to the previous page"), G_CALLBACK (_action_back_activate) },
+ { "Forward", GTK_STOCK_GO_FORWARD,
+ NULL, "<Alt>Right",
+ N_("Go forward to the next page"), G_CALLBACK (_action_forward_activate) },
+ { "Previous", GTK_STOCK_MEDIA_PREVIOUS,
+ NULL, "<Ctrl>Left",
+ /* i18n: Visit the previous logical page, ie. in a forum or blog */
+ N_("Go to the previous sub-page"), G_CALLBACK (_action_previous_activate) },
+ { "Next", GTK_STOCK_MEDIA_NEXT,
+ NULL, "<Ctrl>Right",
+ /* i18n: Visit the following logical page, ie. in a forum or blog */
+ N_("Go to the next sub-page"), G_CALLBACK (_action_next_activate) },
+ { "Homepage", STOCK_HOMEPAGE,
+ NULL, "<Alt>Home",
+ N_("Go to your homepage"), G_CALLBACK (_action_homepage_activate) },
+ { "TrashEmpty", GTK_STOCK_CLEAR,
+ N_("Empty Trash"), "",
+ N_("Delete the contents of the trash"), G_CALLBACK (_action_trash_empty_activate) },
+ { "UndoTabClose", GTK_STOCK_UNDELETE,
+ N_("Undo _Close Tab"), "<Ctrl><Shift>t",
+ N_("Open the last closed tab"), G_CALLBACK (_action_undo_tab_close_activate) },
+
+ { "BookmarkAdd", STOCK_BOOKMARK_ADD,
+ NULL, "<Ctrl>d",
+ N_("Add a new bookmark"), G_CALLBACK (_action_bookmark_add_activate) },
+ { "BookmarkFolderAdd", NULL,
+ N_("Add a new _folder"), "",
+ N_("Add a new bookmark folder"), G_CALLBACK (_action_bookmark_folder_add_activate) },
+ { "BookmarksImport", NULL,
+ N_("_Import bookmarks"), "",
+ NULL, G_CALLBACK (_action_bookmarks_import_activate) },
+ { "BookmarksExport", NULL,
+ N_("_Export bookmarks"), "",
+ NULL, G_CALLBACK (_action_bookmarks_export_activate) },
+ { "ManageSearchEngines", GTK_STOCK_PROPERTIES,
+ N_("_Manage Search Engines"), "<Ctrl><Alt>s",
+ N_("Add, edit and remove search engines..."),
+ G_CALLBACK (_action_manage_search_engines_activate) },
+ { "ClearPrivateData", NULL,
+ N_("_Clear Private Data"), "<Ctrl><Shift>Delete",
+ N_("Clear private data..."),
+ G_CALLBACK (_action_clear_private_data_activate) },
+ #if WEBKIT_CHECK_VERSION (1, 1, 17)
+ { "InspectPage", NULL,
+ N_("_Inspect Page"), "<Ctrl><Shift>i",
+ N_("Inspect page details and access developer tools..."),
+ G_CALLBACK (_action_inspect_page_activate) },
+ #endif
+
+ { "TabPrevious", GTK_STOCK_GO_BACK,
+ N_("_Previous Tab"), "<Ctrl>Page_Up",
+ N_("Switch to the previous tab"), G_CALLBACK (_action_tab_previous_activate) },
+ { "TabNext", GTK_STOCK_GO_FORWARD,
+ N_("_Next Tab"), "<Ctrl>Page_Down",
+ N_("Switch to the next tab"), G_CALLBACK (_action_tab_next_activate) },
+ { "TabCurrent", NULL,
+ N_("Focus _Current Tab"), "<Ctrl>Home",
+ N_("Focus the current tab"), G_CALLBACK (_action_tab_current_activate) },
+ { "LastSession", NULL,
+ N_("Open last _session"), NULL,
+ N_("Open the tabs saved in the last session"), NULL },
+
+ { "Help", NULL, N_("_Help") },
+ { "HelpContents", GTK_STOCK_HELP,
+ N_("_Contents"), "F1",
+ N_("Show the documentation"), G_CALLBACK (_action_help_link_activate) },
+ { "HelpFAQ", NULL,
+ N_("_Frequent Questions"), NULL,
+ N_("Show the Frequently Asked Questions"), G_CALLBACK (_action_help_link_activate) },
+ { "HelpBugs", NULL,
+ N_("_Report a Bug"), NULL,
+ N_("Open Midori's bug tracker"), G_CALLBACK (_action_help_link_activate) },
+ { "About", GTK_STOCK_ABOUT,
+ NULL, "",
+ N_("Show information about the program"), G_CALLBACK (_action_about_activate) },
+ { "Dummy", NULL, "Dummy" },
+};
+static const guint entries_n = G_N_ELEMENTS (entries);
+
+static const GtkToggleActionEntry toggle_entries[] =
+{
+ { "Menubar", NULL,
+ N_("_Menubar"), "",
+ N_("Show menubar"), G_CALLBACK (_action_menubar_activate),
+ FALSE },
+ { "Navigationbar", NULL,
+ N_("_Navigationbar"), "",
+ N_("Show navigationbar"), G_CALLBACK (_action_navigationbar_activate),
+ FALSE },
+ { "Panel", GTK_STOCK_INDENT,
+ N_("Side_panel"), "F9",
+ N_("Show sidepanel"), G_CALLBACK (_action_panel_activate),
+ FALSE },
+ { "Bookmarkbar", NULL,
+ N_("_Bookmarkbar"), "",
+ N_("Show bookmarkbar"), G_CALLBACK (_action_bookmarkbar_activate),
+ FALSE },
+ { "Transferbar", NULL,
+ N_("_Transferbar"), "",
+ N_("Show transferbar"), G_CALLBACK (_action_transferbar_activate),
+ FALSE },
+ { "Statusbar", NULL,
+ N_("_Statusbar"), "",
+ N_("Show statusbar"), G_CALLBACK (_action_statusbar_activate),
+ FALSE },
+};
+static const guint toggle_entries_n = G_N_ELEMENTS (toggle_entries);
+
+static const GtkRadioActionEntry encoding_entries[] =
+{
+ { "EncodingAutomatic", NULL,
+ N_("_Automatic"), "",
+ NULL, 1 },
+ { "EncodingChinese", NULL,
+ N_("Chinese (BIG5)"), "",
+ NULL, 1 },
+ { "EncodingJapanese", NULL,
+ /* i18n: A double underscore "__" is used to prevent the mnemonic */
+ N_("Japanese (SHIFT__JIS)"), "",
+ NULL, 1 },
+ { "EncodingKorean", NULL,
+ N_("Korean (EUC-KR)"), "",
+ NULL, 1 },
+ { "EncodingRussian", NULL,
+ N_("Russian (KOI8-R)"), "",
+ NULL, 1 },
+ { "EncodingUnicode", NULL,
+ N_("Unicode (UTF-8)"), "",
+ NULL, 1 },
+ { "EncodingWestern", NULL,
+ N_("Western (ISO-8859-1)"), "",
+ NULL, 1 },
+ { "EncodingCustom", NULL,
+ N_("Custom..."), "",
+ NULL, 1 },
+};
+static const guint encoding_entries_n = G_N_ELEMENTS (encoding_entries);
static void
midori_browser_window_state_event_cb (MidoriBrowser* browser,