[gtk+] Add forgotten check



commit 63f0f03a73126c8065a2a889de1bef912a02eb19
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Mar 18 08:28:44 2013 -0400

    Add forgotten check
    
    We don't want to create titlebar widgets if the window
    is not decorated anyway.

 gtk/gtkwindow.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 953a3fe..23b2fc6 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -5094,6 +5094,9 @@ create_decoration (GtkWidget *widget)
   if (priv->client_decorated)
     return;
 
+  if (!priv->decorated)
+    return;
+
   if (priv->type == GTK_WINDOW_POPUP)
     return;
 


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