diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-28 15:14:29 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-28 15:14:29 (EDT) |
commit | 3a1deda22290dbf0f495d1050aa710410c3c3570 (patch) | |
tree | 9da16fa3398b821f23f31a64dc6b2cf961e8fe14 /src | |
parent | 447ad98001a15dcade36b1c3e87b9f9302cae9df (diff) | |
download | marquee-3a1deda22290dbf0f495d1050aa710410c3c3570.zip marquee-3a1deda22290dbf0f495d1050aa710410c3c3570.tar.gz marquee-3a1deda22290dbf0f495d1050aa710410c3c3570.tar.bz2 |
MqMainMenu: Make "Save page" button effective
Diffstat (limited to 'src')
-rw-r--r-- | src/toolbars/navigation/main-menu.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/toolbars/navigation/main-menu.c b/src/toolbars/navigation/main-menu.c index 4594f13..73a100d 100644 --- a/src/toolbars/navigation/main-menu.c +++ b/src/toolbars/navigation/main-menu.c @@ -67,6 +67,13 @@ open_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqMainMenu *main_menu) } static void +save_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqMainMenu *main_menu) +{ + gtk_widget_hide(main_menu->popover); + mq_tab_page_save(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); @@ -180,7 +187,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, open_clicked_cb); - /* TODO: 1, 1: Save page */ + CLICKED_CB(1, 1, save_clicked_cb); /* TODO: 1, 2: E-mail link */ CLICKED_CB(2, 0, find_clicked_cb); /* TODO: 2, 1: Print preview */ |