[gtk+/gtk-style-context: 233/490] GtkCssProvider: unset filename on load_from_data()



commit 9330e546d4321a450d734bbef72cd2cf059741ca
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Sep 24 22:09:37 2010 +0200

    GtkCssProvider: unset filename on load_from_data()

 gtk/gtkcssprovider.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index de28e26..fc07bf3 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -2112,6 +2112,9 @@ gtk_css_provider_load_from_data (GtkCssProvider *css_provider,
   priv->scanner->input_name = "-";
   g_scanner_input_text (priv->scanner, data, (guint) length);
 
+  g_free (priv->filename);
+  priv->filename = NULL;
+
   parse_stylesheet (css_provider);
 
   return TRUE;



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