summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2010-03-27 21:24:22 +0100
committerCarlos Garnacho <carlosg@gnome.org>2010-12-04 15:36:58 +0100
commit88492a50d6dbc6702ebbdbf9c888a21dbbc35f60 (patch)
treeaaae5935bf6b6dd7018afdd23b7823bc945ff4db
parentaf1edc3d8809f35092c25eedfdb81af7c7a45e2a (diff)
downloadgtk+-88492a50d6dbc6702ebbdbf9c888a21dbbc35f60.tar.gz
GtkStyleContext: Add gtk_render_frame_gap().
-rw-r--r--gtk/gtkstylecontext.c26
-rw-r--r--gtk/gtkstylecontext.h9
2 files changed, 35 insertions, 0 deletions
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index cdf6c4b73b..5969f8dad3 100644
--- a/gtk/gtkstylecontext.c
+++ b/gtk/gtkstylecontext.c
@@ -798,5 +798,31 @@ gtk_render_slider (GtkStyleContext *context,
engine_class->render_slider (priv->theming_engine, cr, x, y, width, height, orientation);
}
+void
+gtk_render_frame_gap (GtkStyleContext *context,
+ cairo_t *cr,
+ gdouble x,
+ gdouble y,
+ gdouble width,
+ gdouble height,
+ GtkPositionType gap_side,
+ gdouble xy0_gap,
+ gdouble xy1_gap)
+{
+ GtkStyleContextPrivate *priv;
+ GtkThemingEngineClass *engine_class;
+
+ g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
+ g_return_if_fail (cr != NULL);
+
+ priv = GTK_STYLE_CONTEXT_GET_PRIVATE (context);
+ engine_class = GTK_THEMING_ENGINE_GET_CLASS (priv->theming_engine);
+
+ _gtk_theming_engine_set_context (priv->theming_engine, context);
+ engine_class->render_frame_gap (priv->theming_engine, cr,
+ x, y, width, height, gap_side,
+ xy0_gap, xy1_gap);
+}
+
#define __GTK_STYLE_CONTEXT_C__
#include "gtkaliasdef.c"
diff --git a/gtk/gtkstylecontext.h b/gtk/gtkstylecontext.h
index 710f689c4d..bea4dc72f6 100644
--- a/gtk/gtkstylecontext.h
+++ b/gtk/gtkstylecontext.h
@@ -163,6 +163,15 @@ void gtk_render_slider (GtkStyleContext *context,
gdouble width,
gdouble height,
GtkOrientation orientation);
+void gtk_render_frame_gap (GtkStyleContext *context,
+ cairo_t *cr,
+ gdouble x,
+ gdouble y,
+ gdouble width,
+ gdouble height,
+ GtkPositionType gap_side,
+ gdouble xy0_gap,
+ gdouble xy1_gap);
G_END_DECLS