From c15ed53c84f2f0181cc683d8d26ad58ea22dea82 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 07 Oct 2017 23:05:42 -0400 Subject: MqTabChrome: Make fullscreen button functional --- 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); -- cgit v0.9.1