[gtk+/parser] xxx: 47fa2823c9b9a7305703e73cf8377d9c23337c6e



commit eca96142d91f3b29217172d6c3e959cf299872d5
Author: Benjamin Otte <otte redhat com>
Date:   Wed May 18 19:44:49 2011 +0200

    xxx: 47fa2823c9b9a7305703e73cf8377d9c23337c6e

 gtk/gtkcssprovider.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 5ef4100..2e21ec3 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -2008,12 +2008,15 @@ parse_declaration (GtkCssScanner *scanner,
                   _gtk_css_parser_resync (scanner->parser, TRUE, '}');
                   g_value_unset (val);
                   g_slice_free (GValue, val);
+                  return;
                 }
             }
           else
             {
               g_value_unset (val);
               g_slice_free (GValue, val);
+              _gtk_css_parser_resync (scanner->parser, TRUE, '}');
+              return;
             }
         }
     }
@@ -2032,6 +2035,11 @@ parse_declaration (GtkCssScanner *scanner,
 
           gtk_css_ruleset_add_style (ruleset, name, val);
         }
+      else
+        {
+          _gtk_css_parser_resync (scanner->parser, TRUE, '}');
+          return;
+        }
     }
   else
     g_free (name);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]