summaryrefslogtreecommitdiffstats
path: root/src/toolbars/navigation
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-28 14:21:19 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-28 15:12:49 (EDT)
commite83d832f3106c0cfdd5bbcff84baecc0395731ae (patch)
tree1561d6a34459495fa2dbf62cb63a16136e401996 /src/toolbars/navigation
parent916e89104c2953bbbb73ea2488e50905d0f35911 (diff)
downloadmarquee-e83d832f3106c0cfdd5bbcff84baecc0395731ae.zip
marquee-e83d832f3106c0cfdd5bbcff84baecc0395731ae.tar.gz
marquee-e83d832f3106c0cfdd5bbcff84baecc0395731ae.tar.bz2
MqMainMenu: Make "Open file" button effective
Diffstat (limited to 'src/toolbars/navigation')
-rw-r--r--src/toolbars/navigation/main-menu.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/toolbars/navigation/main-menu.c b/src/toolbars/navigation/main-menu.c
index 7b5073c..4594f13 100644
--- a/src/toolbars/navigation/main-menu.c
+++ b/src/toolbars/navigation/main-menu.c
@@ -60,6 +60,13 @@ zoom_out_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqMainMenu *main_menu)
}
static void
+open_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqMainMenu *main_menu)
+{
+ gtk_widget_hide(main_menu->popover);
+ mq_tab_page_open(main_menu->tab_page);
+}
+
+static void
zoom_reset_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqMainMenu *main_menu)
{
mq_web_view_zoom_reset(main_menu->web_view);
@@ -172,7 +179,7 @@ menu_clicked_cb(MqMainMenu *main_menu)
CLICKED_CB(0, 0, zoom_out_clicked_cb);
CLICKED_CB(0, 1, zoom_reset_clicked_cb);
CLICKED_CB(0, 2, zoom_in_clicked_cb);
- /* TODO: 1, 0: Open file */
+ CLICKED_CB(1, 0, open_clicked_cb);
/* TODO: 1, 1: Save page */
/* TODO: 1, 2: E-mail link */
CLICKED_CB(2, 0, find_clicked_cb);