[gtk+/gtk-style-context: 223/533] GtkWidget: Set style context's screen before the widget_path.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 223/533] GtkWidget: Set style context's screen before the widget_path.
- Date: Wed, 1 Dec 2010 02:24:34 +0000 (UTC)
commit fa2f6e8f86af150af157c7924bc3d1a8a85b290f
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Sep 11 12:45:42 2010 +0200
GtkWidget: Set style context's screen before the widget_path.
This is so the style context has all necessary information before
triggering a style change on setting the path.
gtk/gtkwidget.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 35fc32a..6b29f8e 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -13432,13 +13432,12 @@ gtk_widget_get_style_context (GtkWidget *widget)
gtk_style_context_add_provider (context,
GTK_STYLE_PROVIDER (settings),
GTK_STYLE_PROVIDER_PRIORITY_SETTINGS);
+ gtk_style_context_set_screen (context,
+ gtk_widget_get_screen (widget));
path = gtk_widget_get_path (widget);
gtk_style_context_set_path (context, path);
gtk_widget_path_free (path);
-
- gtk_style_context_set_screen (context,
- gtk_widget_get_screen (widget));
}
return context;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]