summaryrefslogtreecommitdiff
path: root/gtk/gtkrender.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-07-07 14:36:59 +0200
committerTimm Bäder <mail@baedert.org>2018-07-08 09:41:15 +0200
commit33166b735750b6385475777e61acbe1eb3080c5a (patch)
tree74126baad70244b8aaaeec51543b51d1fe3ab980 /gtk/gtkrender.c
parentbb31ce11682aaa2753db549df03c862f9041bdbd (diff)
downloadgtk+-33166b735750b6385475777e61acbe1eb3080c5a.tar.gz
render: Remove gtk_render_slider
The only thing it was doing is render background and frame, which you get from using a widget for your slider anyway.
Diffstat (limited to 'gtk/gtkrender.c')
-rw-r--r--gtk/gtkrender.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/gtk/gtkrender.c b/gtk/gtkrender.c
index 12c0fa2775..3c90bb03d2 100644
--- a/gtk/gtkrender.c
+++ b/gtk/gtkrender.c
@@ -551,63 +551,6 @@ gtk_render_line (GtkStyleContext *context,
}
static void
-gtk_do_render_slider (GtkStyleContext *context,
- cairo_t *cr,
- gdouble x,
- gdouble y,
- gdouble width,
- gdouble height,
- GtkOrientation orientation)
-{
- GtkCssStyle *style;
-
- style = gtk_style_context_lookup_style (context);
-
- gtk_css_style_render_background (style,
- cr,
- x, y, width, height);
- gtk_css_style_render_border (style,
- cr,
- x, y, width, height);
-}
-
-/**
- * gtk_render_slider:
- * @context: a #GtkStyleContext
- * @cr: a #cairo_t
- * @x: X origin of the rectangle
- * @y: Y origin of the rectangle
- * @width: rectangle width
- * @height: rectangle height
- * @orientation: orientation of the slider
- *
- * Renders a slider (as in #GtkScale) in the rectangle defined by @x, @y,
- * @width, @height. @orientation defines whether the slider is vertical
- * or horizontal.
- *
- * Typical slider rendering:
- *
- * ![](sliders.png)
- **/
-void
-gtk_render_slider (GtkStyleContext *context,
- cairo_t *cr,
- gdouble x,
- gdouble y,
- gdouble width,
- gdouble height,
- GtkOrientation orientation)
-{
- g_return_if_fail (GTK_IS_STYLE_CONTEXT (context));
- g_return_if_fail (cr != NULL);
-
- if (width <= 0 || height <= 0)
- return;
-
- gtk_do_render_slider (context, cr, x, y, width, height, orientation);
-}
-
-static void
gtk_css_style_render_frame_gap (GtkCssStyle *style,
cairo_t *cr,
gdouble x,