mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
GtkThemingEngine: Add gtk_theming_engine_get_screen().
This commit is contained in:
parent
5db7197c27
commit
4a465d279d
@ -402,6 +402,17 @@ gtk_theming_engine_load (const gchar *name)
|
||||
return engine;
|
||||
}
|
||||
|
||||
GdkScreen *
|
||||
gtk_theming_engine_get_screen (GtkThemingEngine *engine)
|
||||
{
|
||||
GtkThemingEnginePrivate *priv;
|
||||
|
||||
g_return_val_if_fail (GTK_IS_THEMING_ENGINE (engine), NULL);
|
||||
|
||||
priv = engine->priv;
|
||||
return gtk_style_context_get_screen (priv->context);
|
||||
}
|
||||
|
||||
/* Paint method implementations */
|
||||
static void
|
||||
gtk_theming_engine_render_check (GtkThemingEngine *engine,
|
||||
|
@ -164,6 +164,8 @@ gboolean gtk__theming_engine_is_state_set (GtkThemingEngine *engine,
|
||||
|
||||
G_CONST_RETURN GtkThemingEngine * gtk_theming_engine_load (const gchar *name);
|
||||
|
||||
GdkScreen * gtk_theming_engine_get_screen (GtkThemingEngine *engine);
|
||||
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user