From c242639558376441ae8319f53f7ad980d7b632cb Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 3 Jan 2012 20:05:27 +0100 Subject: [PATCH] Allow hiding of titlebar when window is maximized --- midori/midori-browser.c | 3 +++ midori/midori-view.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 72770e11..d037a2c9 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -5878,6 +5878,9 @@ midori_browser_init (MidoriBrowser* browser) G_CALLBACK (midori_browser_destroy_cb), NULL); gtk_window_set_role (GTK_WINDOW (browser), "browser"); gtk_window_set_icon_name (GTK_WINDOW (browser), "web-browser"); + #if GTK_CHECK_VERSION (3, 4, 0) + gtk_window_set_hide_titlebar_when_maximized (GTK_WINDOW (browser), TRUE); + #endif vbox = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_CONTAINER (browser), vbox); gtk_widget_show (vbox); diff --git a/midori/midori-view.c b/midori/midori-view.c index 022f92db..b2fdcf51 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -3455,6 +3455,9 @@ midori_view_web_inspector_construct_window (gpointer inspector, } else gtk_window_set_icon_name (GTK_WINDOW (window), "midori"); + #if GTK_CHECK_VERSION (3, 4, 0) + gtk_window_set_hide_titlebar_when_maximized (GTK_WINDOW (window), TRUE); + #endif gtk_container_add (GTK_CONTAINER (window), inspector_view); gtk_widget_show_all (window);