[gtk+] stylecontext: Make sure we always clear the cache when the CSS changes
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] stylecontext: Make sure we always clear the cache when the CSS changes
- Date: Sat, 13 Dec 2014 02:45:28 +0000 (UTC)
commit 1cb3734924cf09d38253878b6e3ec842afeaa4f3
Author: Benjamin Otte <otte redhat com>
Date: Sat Dec 13 03:41:33 2014 +0100
stylecontext: Make sure we always clear the cache when the CSS changes
After b49c7c34214da2d8d5e6dae2e8d0b0fe1b23f68e we were no longer doing a
full revalidate after GTK_CSS_CHANGE_SOURCE changes.
This fixes spurious failures of widgets not properly updating when
changing the theme.
gtk/gtkstylecontext.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 6bd35c7..7773997 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -736,6 +736,8 @@ style_values_lookup (GtkStyleContext *context)
else
{
build_properties (context, values, info->decl, NULL, &priv->relevant_changes);
+ /* These flags are always relevant */
+ priv->relevant_changes |= GTK_CSS_CHANGE_SOURCE;
}
g_object_unref (values);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]