diff options
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); |