mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
cssprovider: Make @import use the new load_internal() func
This commit is contained in:
parent
a183375b94
commit
b0d3078aa7
@ -842,10 +842,12 @@ static void gtk_css_style_provider_iface_init (GtkStyleProviderIface *iface);
|
|||||||
|
|
||||||
static void scanner_apply_scope (GScanner *scanner,
|
static void scanner_apply_scope (GScanner *scanner,
|
||||||
ParserScope scope);
|
ParserScope scope);
|
||||||
static gboolean gtk_css_provider_load_from_path_internal (GtkCssProvider *css_provider,
|
static gboolean
|
||||||
const gchar *path,
|
gtk_css_provider_load_internal (GtkCssProvider *css_provider,
|
||||||
gboolean reset,
|
GFile *file,
|
||||||
GError **error);
|
const char *data,
|
||||||
|
gsize length,
|
||||||
|
GError **error);
|
||||||
|
|
||||||
GQuark
|
GQuark
|
||||||
gtk_css_provider_error_quark (void)
|
gtk_css_provider_error_quark (void)
|
||||||
@ -2276,15 +2278,13 @@ parse_rule (GtkCssProvider *css_provider,
|
|||||||
return ';';
|
return ';';
|
||||||
}
|
}
|
||||||
|
|
||||||
path = g_file_get_path (actual);
|
|
||||||
g_object_unref (actual);
|
|
||||||
|
|
||||||
/* FIXME: Avoid recursive importing */
|
/* FIXME: Avoid recursive importing */
|
||||||
loaded = gtk_css_provider_load_from_path_internal (css_provider, path,
|
loaded = gtk_css_provider_load_internal (css_provider,
|
||||||
FALSE, NULL);
|
actual,
|
||||||
|
NULL, 0,
|
||||||
|
NULL);
|
||||||
|
|
||||||
/* Restore previous state */
|
g_object_unref (actual);
|
||||||
g_free (path);
|
|
||||||
|
|
||||||
if (!loaded)
|
if (!loaded)
|
||||||
return G_TOKEN_IDENTIFIER;
|
return G_TOKEN_IDENTIFIER;
|
||||||
|
Loading…
Reference in New Issue
Block a user