[gtk+/nth-child: 3/22] css: Constify path argument to _css_selector_matches()



commit 315702879cea85b3ffc2b923055dfecb48dbb281
Author: Benjamin Otte <otte redhat com>
Date:   Wed May 25 17:40:03 2011 +0200

    css: Constify path argument to _css_selector_matches()
    
    It should have been const all the time, but I assumed widgetpath code
    wasn't properly const. PEBKAC.

 gtk/gtkcssselector.c        |   14 +++++++-------
 gtk/gtkcssselectorprivate.h |    2 +-
 2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkcssselector.c b/gtk/gtkcssselector.c
index 35db9ca..d0397a6 100644
--- a/gtk/gtkcssselector.c
+++ b/gtk/gtkcssselector.c
@@ -183,7 +183,7 @@ _gtk_css_selector_to_string (const GtkCssSelector *selector)
 
 static gboolean
 gtk_css_selector_matches_type (const GtkCssSelector      *selector,
-                               /* const */ GtkWidgetPath *path,
+                               const GtkWidgetPath       *path,
                                guint                      id)
 {
   if (selector->name == NULL)
@@ -207,7 +207,7 @@ gtk_css_selector_matches_type (const GtkCssSelector      *selector,
 
 static gboolean
 gtk_css_selector_matches_region (const GtkCssSelector      *selector,
-                                 /* const */ GtkWidgetPath *path,
+                                 const GtkWidgetPath       *path,
                                  guint                      id,
                                  const char *               region)
 {
@@ -230,7 +230,7 @@ gtk_css_selector_matches_region (const GtkCssSelector      *selector,
 
 static gboolean
 gtk_css_selector_matches_rest (const GtkCssSelector      *selector,
-                               /* const */ GtkWidgetPath *path,
+                               const GtkWidgetPath       *path,
                                guint                      id)
 {
   if (selector->ids)
@@ -260,13 +260,13 @@ gtk_css_selector_matches_rest (const GtkCssSelector      *selector,
 
 static gboolean
 gtk_css_selector_matches_previous (const GtkCssSelector      *selector,
-                                   /* const */ GtkWidgetPath *path,
+                                   const GtkWidgetPath       *path,
                                    guint                      id,
                                    GSList                    *regions);
 
 static gboolean
 gtk_css_selector_matches_from (const GtkCssSelector      *selector,
-                               /* const */ GtkWidgetPath *path,
+                               const GtkWidgetPath       *path,
                                guint                      id,
                                GSList                    *regions)
 {
@@ -318,7 +318,7 @@ gtk_css_selector_matches_from (const GtkCssSelector      *selector,
 
 static gboolean
 gtk_css_selector_matches_previous (const GtkCssSelector      *selector,
-                                   /* const */ GtkWidgetPath *path,
+                                   const GtkWidgetPath       *path,
                                    guint                      id,
                                    GSList                    *regions)
 {
@@ -369,7 +369,7 @@ gtk_css_selector_matches_previous (const GtkCssSelector      *selector,
  **/
 gboolean
 _gtk_css_selector_matches (const GtkCssSelector      *selector,
-                           /* const */ GtkWidgetPath *path,
+                           const GtkWidgetPath       *path,
                            guint                      length)
 {
   GSList *list;
diff --git a/gtk/gtkcssselectorprivate.h b/gtk/gtkcssselectorprivate.h
index 5a15882..eca5135 100644
--- a/gtk/gtkcssselectorprivate.h
+++ b/gtk/gtkcssselectorprivate.h
@@ -48,7 +48,7 @@ void              _gtk_css_selector_print           (const GtkCssSelector   *sel
 GtkStateFlags     _gtk_css_selector_get_state_flags (GtkCssSelector         *selector);
 
 gboolean          _gtk_css_selector_matches         (const GtkCssSelector   *selector,
-                                                     /* const */ GtkWidgetPath *path,
+                                                     const GtkWidgetPath    *path,
                                                      guint                   length);
 int               _gtk_css_selector_compare         (const GtkCssSelector   *a,
                                                      const GtkCssSelector   *b);



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