[gedit/wip/3.14-osx: 4/5] [osx] Do not show titlebar on OS X



commit d1dcb38a5abb6b6a0496b144e769d451fb66b1f1
Author: Jesse van den Kieboom <jessevdk gmail com>
Date:   Thu Aug 21 22:01:53 2014 +0200

    [osx] Do not show titlebar on OS X

 gedit/gedit-app-osx.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/gedit/gedit-app-osx.c b/gedit/gedit-app-osx.c
index 6d448c1..f3c216a 100644
--- a/gedit/gedit-app-osx.c
+++ b/gedit/gedit-app-osx.c
@@ -200,6 +200,18 @@ gedit_app_osx_startup (GApplication *application)
        load_keybindings ();
 }
 
+static GeditWindow *
+gedit_app_osx_create_window_impl (GeditApp *app)
+{
+       GeditWindow *window;
+
+       window = GEDIT_APP_CLASS (gedit_app_osx_parent_class)->create_window (app);
+
+       gtk_window_set_titlebar (GTK_WINDOW (window), NULL);
+
+       return window;
+}
+
 
 static void
 gedit_app_osx_class_init (GeditAppOSXClass *klass)
@@ -213,6 +225,7 @@ gedit_app_osx_class_init (GeditAppOSXClass *klass)
 
        app_class->show_help = gedit_app_osx_show_help_impl;
        app_class->set_window_title = gedit_app_osx_set_window_title_impl;
+       app_class->create_window = gedit_app_osx_create_window_impl;
 }
 
 static void


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