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.
This commit is contained in:
Benjamin Otte 2011-05-25 17:40:03 +02:00
parent f4b7b287b9
commit d1a8d73871
2 changed files with 8 additions and 8 deletions

View File

@ -183,7 +183,7 @@ _gtk_css_selector_to_string (const GtkCssSelector *selector)
static gboolean static gboolean
gtk_css_selector_matches_type (const GtkCssSelector *selector, gtk_css_selector_matches_type (const GtkCssSelector *selector,
/* const */ GtkWidgetPath *path, const GtkWidgetPath *path,
guint id) guint id)
{ {
if (selector->name == NULL) if (selector->name == NULL)
@ -207,7 +207,7 @@ gtk_css_selector_matches_type (const GtkCssSelector *selector,
static gboolean static gboolean
gtk_css_selector_matches_region (const GtkCssSelector *selector, gtk_css_selector_matches_region (const GtkCssSelector *selector,
/* const */ GtkWidgetPath *path, const GtkWidgetPath *path,
guint id, guint id,
const char * region) const char * region)
{ {
@ -230,7 +230,7 @@ gtk_css_selector_matches_region (const GtkCssSelector *selector,
static gboolean static gboolean
gtk_css_selector_matches_rest (const GtkCssSelector *selector, gtk_css_selector_matches_rest (const GtkCssSelector *selector,
/* const */ GtkWidgetPath *path, const GtkWidgetPath *path,
guint id) guint id)
{ {
if (selector->ids) if (selector->ids)
@ -260,13 +260,13 @@ gtk_css_selector_matches_rest (const GtkCssSelector *selector,
static gboolean static gboolean
gtk_css_selector_matches_previous (const GtkCssSelector *selector, gtk_css_selector_matches_previous (const GtkCssSelector *selector,
/* const */ GtkWidgetPath *path, const GtkWidgetPath *path,
guint id, guint id,
GSList *regions); GSList *regions);
static gboolean static gboolean
gtk_css_selector_matches_from (const GtkCssSelector *selector, gtk_css_selector_matches_from (const GtkCssSelector *selector,
/* const */ GtkWidgetPath *path, const GtkWidgetPath *path,
guint id, guint id,
GSList *regions) GSList *regions)
{ {
@ -318,7 +318,7 @@ gtk_css_selector_matches_from (const GtkCssSelector *selector,
static gboolean static gboolean
gtk_css_selector_matches_previous (const GtkCssSelector *selector, gtk_css_selector_matches_previous (const GtkCssSelector *selector,
/* const */ GtkWidgetPath *path, const GtkWidgetPath *path,
guint id, guint id,
GSList *regions) GSList *regions)
{ {
@ -369,7 +369,7 @@ gtk_css_selector_matches_previous (const GtkCssSelector *selector,
**/ **/
gboolean gboolean
_gtk_css_selector_matches (const GtkCssSelector *selector, _gtk_css_selector_matches (const GtkCssSelector *selector,
/* const */ GtkWidgetPath *path, const GtkWidgetPath *path,
guint length) guint length)
{ {
GSList *list; GSList *list;

View File

@ -48,7 +48,7 @@ void _gtk_css_selector_print (const GtkCssSelector *sel
GtkStateFlags _gtk_css_selector_get_state_flags (GtkCssSelector *selector); GtkStateFlags _gtk_css_selector_get_state_flags (GtkCssSelector *selector);
gboolean _gtk_css_selector_matches (const GtkCssSelector *selector, gboolean _gtk_css_selector_matches (const GtkCssSelector *selector,
/* const */ GtkWidgetPath *path, const GtkWidgetPath *path,
guint length); guint length);
int _gtk_css_selector_compare (const GtkCssSelector *a, int _gtk_css_selector_compare (const GtkCssSelector *a,
const GtkCssSelector *b); const GtkCssSelector *b);