]> Pileus Git - ~andy/gtk/commitdiff
Accept class names starting with lowercase letters for style property
authorMatthias Clasen <mclasen@redhat.com>
Mon, 11 Jun 2007 04:45:18 +0000 (04:45 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 11 Jun 2007 04:45:18 +0000 (04:45 +0000)
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

ChangeLog
gtk/gtkrc.c

index b8a70b6717bb54621e0e538ec34eb3d56d5f4cac..5a71bbc405775072901e9428b59a6abfdb9f2842 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
 2007-06-10  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkentry.c (gtk_entry_finalize): Don't leak cursor_hadjustment.
index 77fdc3fd318c5829f00a0b8ff8789800cbcb260c..2100e00c7c61699906d47ef36e8f1e01f8531cff 100644 (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:
           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;
            {
              GtkRcProperty prop = { 0, 0, NULL, { 0, }, };
              gchar *name;