Commit 29527395 authored by Matthias Clasen's avatar Matthias Clasen

GtkCssProvider: Allow to enable debug at runtime

Add a private function that lets us decide at runtime whether to
keep css section information around - this will be useful in the
parent b25b33f7
......@@ -1244,13 +1244,22 @@ gtk_css_provider_parsing_error (GtkCssProvider *provider,
/* This is exported privately for use in GtkInspector.
* It is the callers responsibility to reparse the current theme.
gtk_css_provider_set_keep_css_sections (void)
gtk_keep_css_sections = TRUE;
static void
gtk_css_provider_class_init (GtkCssProviderClass *klass)
GObjectClass *object_class = G_OBJECT_CLASS (klass);
if (g_getenv ("GTK_CSS_DEBUG"))
gtk_keep_css_sections = TRUE;
gtk_css_provider_set_keep_css_sections ();
* GtkCssProvider::parsing-error:
......@@ -28,6 +28,8 @@ void _gtk_css_provider_load_named (GtkCssProvider *provider,
const gchar *name,
const gchar *variant);
void gtk_css_provider_set_keep_css_sections (void);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment