[gtk+/gtk-style-context: 519/533] Initialize screen of GtkStyleContext to default screen
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 519/533] Initialize screen of GtkStyleContext to default screen
- Date: Wed, 1 Dec 2010 02:49:28 +0000 (UTC)
commit 355c782868dbc3e9884d57fc9a323b5528c629cc
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Fri Nov 26 08:59:10 2010 +0100
Initialize screen of GtkStyleContext to default screen
gtk/gtkstylecontext.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index 292ab12..2cee500 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -706,6 +706,8 @@ gtk_style_context_init (GtkStyleContext *style_context)
priv->direction = GTK_TEXT_DIR_RTL;
+ priv->screen = gdk_screen_get_default ();
+
/* Create default info store */
info = style_info_new ();
priv->info_stack = g_slist_prepend (priv->info_stack, info);
@@ -1232,9 +1234,8 @@ style_provider_remove (GList **list,
* gtk_style_context_new:
*
* Creates a standalone #GtkStyleContext, this style context
- * won't be attached to any widget nor screen, so you may want
- * to call gtk_style_context_set_path() and
- * gtk_style_context_set_screen() yourself.
+ * won't be attached to any widget, so you may want
+ * to call gtk_style_context_set_path() yourself.
*
* <note>
* This function is only useful when using the theming layer
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]