[gtk+] csd: Improve appearance inside glade



commit 120abd9a6ec14d1764623060b068c86dd7b295c0
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Nov 1 14:49:02 2014 -0400

    csd: Improve appearance inside glade
    
    glade turns windows into non-toplevels, so we can easily recognize
    that situation and avoid adding a humongous shadow area.

 gtk/gtkwindow.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 530b947..6334f26 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6385,6 +6385,9 @@ get_shadow_width (GtkWidget *widget,
       priv->tiled)
     return;
 
+  if (!gtk_widget_is_toplevel (widget))
+    return;
+
   state = gtk_widget_get_state_flags (widget);
   context = gtk_widget_get_style_context (widget);
 


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