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
This commit is contained in:
Matthias Clasen 2007-06-11 04:45:18 +00:00 committed by Matthias Clasen
parent fff5939da5
commit d090fe423b
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,10 @@
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)
2007-06-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c (gtk_entry_finalize): Don't leak cursor_hadjustment.

View File

@ -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;