diff options
Diffstat (limited to 'src/toolbars')
-rw-r--r-- | src/toolbars/navigation/main-menu.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/toolbars/navigation/main-menu.c b/src/toolbars/navigation/main-menu.c index cb672c2..c287d24 100644 --- a/src/toolbars/navigation/main-menu.c +++ b/src/toolbars/navigation/main-menu.c @@ -86,6 +86,14 @@ zoom_in_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqMainMenu *main_menu) } static void +new_window_clicked_cb(GtkWidget G_GNUC_UNUSED *button, MqMainMenu *main_menu) +{ + mq_application_add_window( + mq_tab_page_get_application(main_menu->tab_page), NULL); + gtk_widget_hide(main_menu->popover); +} + +static void find_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqMainMenu *main_menu) { gtk_widget_hide(main_menu->popover); @@ -168,6 +176,7 @@ menu_clicked_cb(MqMainMenu *main_menu) NEW_BUTTON(0, 1, "zoom-original", "Reset zoom"); NEW_BUTTON(0, 2, "zoom-in", "Zoom in"); + NEW_BUTTON(1, 0, "window-new", "New window"); NEW_BUTTON(1, 1, "edit-find", "Find"); NEW_BUTTON(1, 2, "view-fullscreen", "Full screen"); @@ -187,6 +196,7 @@ menu_clicked_cb(MqMainMenu *main_menu) CLICKED_CB(0, 1, zoom_reset_clicked_cb); CLICKED_CB(0, 2, zoom_in_clicked_cb); + CLICKED_CB(1, 0, new_window_clicked_cb); CLICKED_CB(1, 1, find_clicked_cb); CLICKED_CB(1, 2, fullscreen_clicked_cb); |