[gtk/matthiasc/css-change-tracking-4: 5/11] Fix a few bugs in the css change flag definition



commit a31b2beef3b4fe7f456bcba8e8934c60e62774ae
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jan 16 21:13:09 2020 -0500

    Fix a few bugs in the css change flag definition
    
    These were found by the new change flag tests.

 gtk/gtkcsstypes.c        | 2 +-
 gtk/gtkcsstypesprivate.h | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkcsstypes.c b/gtk/gtkcsstypes.c
index eead8842d9..d304a42f37 100644
--- a/gtk/gtkcsstypes.c
+++ b/gtk/gtkcsstypes.c
@@ -173,7 +173,7 @@ gtk_css_change_print (GtkCssChange  change,
     { GTK_CSS_CHANGE_PARENT_BACKDROP, "parent-backdrop" },
     { GTK_CSS_CHANGE_PARENT_SELECTED, "parent-selected" },
 
-    { GTK_CSS_CHANGE_PARENT_SIBLING_CLASS, "parent-sibling-" },
+    { GTK_CSS_CHANGE_PARENT_SIBLING_CLASS, "parent-sibling-class" },
     { GTK_CSS_CHANGE_PARENT_SIBLING_NAME, "parent-sibling-name" },
     { GTK_CSS_CHANGE_PARENT_SIBLING_ID, "parent-sibling-id" },
     { GTK_CSS_CHANGE_PARENT_SIBLING_FIRST_CHILD, "parent-sibling-first-child" },
diff --git a/gtk/gtkcsstypesprivate.h b/gtk/gtkcsstypesprivate.h
index 27e1d545f2..a1fe7105d3 100644
--- a/gtk/gtkcsstypesprivate.h
+++ b/gtk/gtkcsstypesprivate.h
@@ -75,8 +75,8 @@ typedef struct _GtkCssStaticStyle GtkCssStaticStyle;
 #define GTK_CSS_CHANGE_PARENT_SIBLING_SHIFT (GTK_CSS_CHANGE_PARENT_SHIFT + GTK_CSS_CHANGE_SIBLING_SHIFT)
 
 #define GTK_CSS_CHANGE_PARENT_SIBLING_CLASS           (1ULL << 36)
-#define GTK_CSS_CHANGE_PARENT_SIBLING_ID              (1ULL << 37)
-#define GTK_CSS_CHANGE_PARENT_SIBLING_NAME            (1ULL << 38)
+#define GTK_CSS_CHANGE_PARENT_SIBLING_NAME            (1ULL << 37)
+#define GTK_CSS_CHANGE_PARENT_SIBLING_ID              (1ULL << 38)
 #define GTK_CSS_CHANGE_PARENT_SIBLING_FIRST_CHILD     (1ULL << 39)
 #define GTK_CSS_CHANGE_PARENT_SIBLING_LAST_CHILD      (1ULL << 40)
 #define GTK_CSS_CHANGE_PARENT_SIBLING_NTH_CHILD       (1ULL << 41)


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