[gtk+/gtk-style-context: 93/260] GtkCssProvider: Ensure each scope has its parser config.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 93/260] GtkCssProvider: Ensure each scope has its parser config.
- Date: Wed, 20 Oct 2010 10:29:15 +0000 (UTC)
commit c085e8a4e136cab6cc75d5ddbd4d830782772f46
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Jun 18 16:49:06 2010 +0200
GtkCssProvider: Ensure each scope has its parser config.
gtk/gtkcssprovider.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index fef896c..e354675 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -604,12 +604,16 @@ css_provider_apply_scope (GtkCssProvider *css_provider,
priv->scanner->config->cset_identifier_nth = G_CSET_a_2_z "-" G_CSET_A_2_Z;
priv->scanner->config->scan_identifier_1char = TRUE;
}
- else
+ else if (scope == SCOPE_PSEUDO_CLASS ||
+ scope == SCOPE_NTH_CHILD ||
+ scope == SCOPE_DECLARATION)
{
priv->scanner->config->cset_identifier_first = G_CSET_a_2_z G_CSET_A_2_Z;
priv->scanner->config->cset_identifier_nth = G_CSET_a_2_z "-" G_CSET_A_2_Z;
priv->scanner->config->scan_identifier_1char = FALSE;
}
+ else
+ g_assert_not_reached ();
priv->scanner->config->scan_float = FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]