[gtk+/gtk-style-context: 50/251] GtkStyleContext: Add gtk_render_frame_gap().



commit 145504d8de6f33b3ce5d9623ab169dbb7bb7f672
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Mar 27 21:24:22 2010 +0100

    GtkStyleContext: Add gtk_render_frame_gap().

 gtk/gtkstylecontext.c |   26 ++++++++++++++++++++++++++
 gtk/gtkstylecontext.h |    9 +++++++++
 2 files changed, 35 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkstylecontext.c b/gtk/gtkstylecontext.c
index cdf6c4b..5969f8d 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 710f689..bea4dc7 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
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]