[gtk+/gtk-style-context: 233/533] GtkCssProvider: unset filename on load_from_data()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 233/533] GtkCssProvider: unset filename on load_from_data()
- Date: Wed, 1 Dec 2010 02:25:24 +0000 (UTC)
commit 49bc16746f07ef0396c6b00c10b29eb280aac88c
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]