summaryrefslogtreecommitdiffstats
path: root/src/toolbars
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-02 15:00:14 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-11-02 15:00:14 (EDT)
commit57c12d9f78003610af9ba34171107a2c1309c292 (patch)
tree0a1bd72c71bc834533fc196cd776f6d296ea3a7f /src/toolbars
parent6d0ea99b5e33b0b84f3bbbc25bdfecae16d03b80 (diff)
downloadmarquee-57c12d9f78003610af9ba34171107a2c1309c292.zip
marquee-57c12d9f78003610af9ba34171107a2c1309c292.tar.gz
marquee-57c12d9f78003610af9ba34171107a2c1309c292.tar.bz2
MqMainMenu: Add "New window" button
Diffstat (limited to 'src/toolbars')
-rw-r--r--src/toolbars/navigation/main-menu.c10
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);