GtkThemingEngine: Add gtk_theming_engine_get_screen().

This commit is contained in:
Carlos Garnacho 2010-07-03 13:21:56 +02:00
parent 5db7197c27
commit 4a465d279d
2 changed files with 13 additions and 0 deletions

View File

@ -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,

View File

@ -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