diff options
author | Matthias Clasen <mclasen@redhat.com> | 2007-06-11 04:45:18 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-06-11 04:45:18 +0000 |
commit | d090fe423bfe61c50ee90c5b1d2f8cda57547e32 (patch) | |
tree | a5858355c18a7e032224effc8a08056d8c42774b /gtk/gtkrc.c | |
parent | fff5939da54b37c7864827b47e8a09ff3b8d42b2 (diff) | |
download | gtk+-d090fe423bfe61c50ee90c5b1d2f8cda57547e32.tar.gz |
Accept class names starting with lowercase letters for style property
2007-06-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrc.c (gtk_rc_parse_style): Accept class names starting
with lowercase letters for style property assignments, since
GType accepts these too, and gtkmm uses such class names. (#343012,
Murray Cumming, Johannes Schmid)
svn path=/trunk/; revision=18101
Diffstat (limited to 'gtk/gtkrc.c')
-rw-r--r-- | gtk/gtkrc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkrc.c b/gtk/gtkrc.c index 77fdc3fd31..2100e00c7c 100644 --- a/gtk/gtkrc.c +++ b/gtk/gtkrc.c @@ -3145,9 +3145,7 @@ gtk_rc_parse_style (GtkRcContext *context, token = gtk_rc_parse_logical_color (scanner, rc_style, our_hash); break; case G_TOKEN_IDENTIFIER: - if (is_c_identifier (scanner->next_value.v_identifier) && - scanner->next_value.v_identifier[0] >= 'A' && - scanner->next_value.v_identifier[0] <= 'Z') /* match namespaced type names */ + if (is_c_identifier (scanner->next_value.v_identifier)) { GtkRcProperty prop = { 0, 0, NULL, { 0, }, }; gchar *name; |