[gnome-documents] mainWindow: Request to hide titlebar when maximized



commit 5236e7bea7e9f97b6bff39e76496c8c3fd225c1b
Author: Florian MÃllner <fmuellner gnome org>
Date:   Sat Dec 3 01:45:46 2011 +0100

    mainWindow: Request to hide titlebar when maximized
    
    Applications which are designed accordingly can request to have
    their titlebar hidden when maximized[0]. Documents definitively
    qualifies, so set the corresponding property on the main window.
    
    [0] https://live.gnome.org/GnomeOS/Design/Whiteboards/WindowStates

 configure.ac      |    2 +-
 src/mainWindow.js |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6f8cbb9..6b82576 100644
--- a/configure.ac
+++ b/configure.ac
@@ -57,7 +57,7 @@ AC_SUBST(LIBM)
 
 EVINCE_MIN_VERSION=3.3.0
 GLIB_MIN_VERSION=2.31.0
-GTK_MIN_VERSION=3.3.3
+GTK_MIN_VERSION=3.3.5
 GOBJECT_INTROSPECTION_MIN_VERSION=0.9.6
 GDATA_MIN_VERSION=0.9.1
 GOA_MIN_VERSION=3.2.0
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 762f8a5..069b608 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -49,6 +49,7 @@ MainWindow.prototype = {
 
         this.window = new Gtk.Window({ type: Gtk.WindowType.TOPLEVEL,
                                        window_position: Gtk.WindowPosition.CENTER,
+                                       hide_titlebar_when_maximized: true,
                                        title: _("Documents") });
         this._clutterEmbed = new GtkClutter.Embed();
         this.window.add(this._clutterEmbed);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]