diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-07 23:05:42 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-07 23:05:42 (EDT) |
commit | c15ed53c84f2f0181cc683d8d26ad58ea22dea82 (patch) | |
tree | f62c8c72968ee761e93198cd3f50681f1d67ed63 /src | |
parent | 28d0f5ef3b3dbc5892ad23a5bdd8934ec9ae709a (diff) | |
download | marquee-c15ed53c84f2f0181cc683d8d26ad58ea22dea82.zip marquee-c15ed53c84f2f0181cc683d8d26ad58ea22dea82.tar.gz marquee-c15ed53c84f2f0181cc683d8d26ad58ea22dea82.tar.bz2 |
MqTabChrome: Make fullscreen button functional
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-chrome.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/tab-chrome.c b/src/tab-chrome.c index f9c8960..976597a 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -333,6 +333,13 @@ zoom_in_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqTabChrome *chrome) } static void +fullscreen_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqTabChrome *chrome) +{ + mq_window_toggle_fullscreen(mq_tab_get_window(chrome->tab)); + gtk_widget_hide(chrome->menu_popover); +} + +static void developer_tools_clicked_cb(GtkButton G_GNUC_UNUSED *button, MqTabChrome *chrome) { webkit_web_inspector_show(webkit_web_view_get_inspector( @@ -422,7 +429,7 @@ menu_button_clicked_cb(GtkToolButton *tool_button, /* TODO: 3, 0: Bookmarks */ /* TODO: 3, 1: History */ /* TODO: 3, 2: Downloads */ - /* TODO: 4, 0: Full screen */ + CLICKED_CB(4, 0, fullscreen_clicked_cb); CLICKED_CB(4, 1, developer_tools_clicked_cb); CLICKED_CB(4, 2, preferences_clicked_cb); CLICKED_CB(5, 0, about_clicked_cb); |