[gtk+] cssprovider: Make @import use the new load_internal() func
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] cssprovider: Make @import use the new load_internal() func
- Date: Wed, 18 May 2011 20:28:59 +0000 (UTC)
commit b0d3078aa745cbc7558a2064d9d10652bd4b3ddd
Author: Benjamin Otte <otte redhat com>
Date: Tue Apr 12 01:10:13 2011 +0200
cssprovider: Make @import use the new load_internal() func
gtk/gtkcssprovider.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index e38a8e4..980ffd9 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -842,10 +842,12 @@ static void gtk_css_style_provider_iface_init (GtkStyleProviderIface *iface);
static void scanner_apply_scope (GScanner *scanner,
ParserScope scope);
-static gboolean gtk_css_provider_load_from_path_internal (GtkCssProvider *css_provider,
- const gchar *path,
- gboolean reset,
- GError **error);
+static gboolean
+gtk_css_provider_load_internal (GtkCssProvider *css_provider,
+ GFile *file,
+ const char *data,
+ gsize length,
+ GError **error);
GQuark
gtk_css_provider_error_quark (void)
@@ -2276,15 +2278,13 @@ parse_rule (GtkCssProvider *css_provider,
return ';';
}
- path = g_file_get_path (actual);
- g_object_unref (actual);
-
/* FIXME: Avoid recursive importing */
- loaded = gtk_css_provider_load_from_path_internal (css_provider, path,
- FALSE, NULL);
+ loaded = gtk_css_provider_load_internal (css_provider,
+ actual,
+ NULL, 0,
+ NULL);
- /* Restore previous state */
- g_free (path);
+ g_object_unref (actual);
if (!loaded)
return G_TOKEN_IDENTIFIER;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]