[gtk+] cssprovider: Fix names for first and last child pseudo class



commit 5a1f371e1226aa185216f555ab2dcaa2468eae18
Author: Benjamin Otte <otte redhat com>
Date:   Wed Jul 20 11:59:15 2011 +0200

    cssprovider: Fix names for first and last child pseudo class
    
    The correct name is :first-child, not :first

 gtk/gtkcssprovider.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 97d6b85..9846185 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -1930,8 +1930,8 @@ parse_selector_pseudo_class (GtkCssScanner  *scanner,
     GtkRegionFlags region_flag;
     GtkStateFlags state_flag;
   } pseudo_classes[] = {
-    { "first",        GTK_REGION_FIRST, 0 },
-    { "last",         GTK_REGION_LAST, 0 },
+    { "first-child",  GTK_REGION_FIRST, 0 },
+    { "last-child",   GTK_REGION_LAST, 0 },
     { "sorted",       GTK_REGION_SORTED, 0 },
     { "active",       0, GTK_STATE_FLAG_ACTIVE },
     { "prelight",     0, GTK_STATE_FLAG_PRELIGHT },



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