[Xfce4-commits] <midori:master> Allow hiding of titlebar when window is maximized

Christian Dywan noreply at xfce.org
Tue Jan 3 20:20:01 CET 2012


Updating branch refs/heads/master
         to c242639558376441ae8319f53f7ad980d7b632cb (commit)
       from fad246350ef99cdbdbb9ba556368c21d4b976a3a (commit)

commit c242639558376441ae8319f53f7ad980d7b632cb
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Jan 3 20:05:27 2012 +0100

    Allow hiding of titlebar when window is maximized

 midori/midori-browser.c |    3 +++
 midori/midori-view.c    |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/midori/midori-browser.c b/midori/midori-browser.c
index 72770e1..d037a2c 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 022f92d..b2fdcf5 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);
 


More information about the Xfce4-commits mailing list