[gtk+/gtk-style-context: 119/251] GtkThemingEngine: Add gtk_theming_engine_get_screen().
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 119/251] GtkThemingEngine: Add gtk_theming_engine_get_screen().
- Date: Tue, 12 Oct 2010 02:05:07 +0000 (UTC)
commit 5a4826cf5fb9c09dda15c7ab4f23352f3ecded05
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Jul 3 13:21:56 2010 +0200
GtkThemingEngine: Add gtk_theming_engine_get_screen().
gtk/gtkthemingengine.c | 11 +++++++++++
gtk/gtkthemingengine.h | 2 ++
2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 5d4c8ce..8e6f7a2 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -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,
diff --git a/gtk/gtkthemingengine.h b/gtk/gtkthemingengine.h
index 6ff8214..9e337f8 100644
--- a/gtk/gtkthemingengine.h
+++ b/gtk/gtkthemingengine.h
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]