[glade] Bug 759455 - Avoid showing window decorations in Glade's workspace



commit 08a976717c9e656cc6fbe5101def8c28cf87a8bf
Author: Tristan Van Berkom <tristan upstairslabs com>
Date:   Thu Jan 28 16:56:09 2016 +0100

    Bug 759455 - Avoid showing window decorations in Glade's workspace
    
    On wayland, or when GTK_CSD=1 is set, the windows have decorations
    in the workspace, exposing pesky close buttons that close glade.

 plugins/gtk+/glade-gtk-window.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plugins/gtk+/glade-gtk-window.c b/plugins/gtk+/glade-gtk-window.c
index 7f221f3..fad636e 100644
--- a/plugins/gtk+/glade-gtk-window.c
+++ b/plugins/gtk+/glade-gtk-window.c
@@ -52,6 +52,11 @@ glade_gtk_window_post_create (GladeWidgetAdaptor * adaptor,
   GladeWidget *parent = glade_widget_get_from_gobject (object);
   GladeProject *project = glade_widget_get_project (parent);
 
+  /* Avoid obnoxious window decorations comming up exposing close buttons
+   * which actually close glade itself.
+   */
+  gtk_window_set_decorated (GTK_WINDOW (object), FALSE);
+
   if (reason == GLADE_CREATE_LOAD)
     {
       g_signal_connect (project, "parse-finished",


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