From e5f0e3084369757ca3f24eb8a0cd73ed50353e19 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Fri, 10 Jun 2011 13:44:51 -0400 Subject: [PATCH] themingengine: don't hardcode the slider lines in the theming engine It's wrong to hardcode the slider lines here; those should be rendered as an additional background layer using background-image if the theme specifies so. https://bugzilla.gnome.org/show_bug.cgi?id=652304 --- gtk/gtkthemingengine.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c index f3fcc2ac3d..70254e3b55 100644 --- a/gtk/gtkthemingengine.c +++ b/gtk/gtkthemingengine.c @@ -2153,32 +2153,8 @@ gtk_theming_engine_render_slider (GtkThemingEngine *engine, gdouble height, GtkOrientation orientation) { - const GtkWidgetPath *path; - gint thickness; - - path = gtk_theming_engine_get_path (engine); - gtk_theming_engine_render_background (engine, cr, x, y, width, height); gtk_theming_engine_render_frame (engine, cr, x, y, width, height); - - /* FIXME: thickness */ - thickness = 2; - - if (gtk_widget_path_is_type (path, GTK_TYPE_SCALE)) - { - if (orientation == GTK_ORIENTATION_VERTICAL) - gtk_theming_engine_render_line (engine, cr, - x + thickness, - y + (gint) height / 2, - x + width - thickness - 1, - y + (gint) height / 2); - else - gtk_theming_engine_render_line (engine, cr, - x + (gint) width / 2, - y + thickness, - x + (gint) width / 2, - y + height - thickness - 1); - } } static void