[gtk+/gtk-3-22] GtkWindow: Set tiled class on windows that have any tiled edge



commit 72045a1a2defa82692bac043c5123da7944d76ec
Author: Simon McVittie <smcv debian org>
Date:   Thu Oct 26 16:02:07 2017 +0100

    GtkWindow: Set tiled class on windows that have any tiled edge
    
    This has no practical effect on Adwaita, but might fix some
    third-party themes that were broken by GTK+ 3.22.23.
    
    Signed-off-by: Simon McVittie <smcv debian org>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=789357

 gtk/gtkwindow.c |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 33f81d2..bbbb9ee 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -7644,14 +7644,12 @@ update_window_style_classes (GtkWindow *window)
 
   context = gtk_widget_get_style_context (GTK_WIDGET (window));
 
-  if (priv->edge_constraints == 0)
-    {
-      if (priv->tiled)
-        gtk_style_context_add_class (context, "tiled");
-      else
-        gtk_style_context_remove_class (context, "tiled");
-    }
+  if (priv->tiled)
+    gtk_style_context_add_class (context, "tiled");
   else
+    gtk_style_context_remove_class (context, "tiled");
+
+  if (priv->edge_constraints != 0)
     {
       guint edge_constraints = priv->edge_constraints;
 


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