forked from AuroraMiddleware/gtk
Initialize screen of GtkStyleContext to default screen
This commit is contained in:
parent
587c08a151
commit
7abf76fbc1
@ -706,6 +706,8 @@ gtk_style_context_init (GtkStyleContext *style_context)
|
|||||||
|
|
||||||
priv->direction = GTK_TEXT_DIR_RTL;
|
priv->direction = GTK_TEXT_DIR_RTL;
|
||||||
|
|
||||||
|
priv->screen = gdk_screen_get_default ();
|
||||||
|
|
||||||
/* Create default info store */
|
/* Create default info store */
|
||||||
info = style_info_new ();
|
info = style_info_new ();
|
||||||
priv->info_stack = g_slist_prepend (priv->info_stack, info);
|
priv->info_stack = g_slist_prepend (priv->info_stack, info);
|
||||||
@ -1232,9 +1234,8 @@ style_provider_remove (GList **list,
|
|||||||
* gtk_style_context_new:
|
* gtk_style_context_new:
|
||||||
*
|
*
|
||||||
* Creates a standalone #GtkStyleContext, this style context
|
* Creates a standalone #GtkStyleContext, this style context
|
||||||
* won't be attached to any widget nor screen, so you may want
|
* won't be attached to any widget, so you may want
|
||||||
* to call gtk_style_context_set_path() and
|
* to call gtk_style_context_set_path() yourself.
|
||||||
* gtk_style_context_set_screen() yourself.
|
|
||||||
*
|
*
|
||||||
* <note>
|
* <note>
|
||||||
* This function is only useful when using the theming layer
|
* This function is only useful when using the theming layer
|
||||||
|
Loading…
Reference in New Issue
Block a user