From 4095cac75cd139db23e6ed7269767827db3c643e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 23 Feb 2018 07:59:10 +0100 Subject: range: Remove GtkScale special casing This is unnecessary these days due to the negative margins of the slider. --- gtk/gtkrange.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'gtk/gtkrange.c') diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c index 5eff55328d..4d7a8bb4f1 100644 --- a/gtk/gtkrange.c +++ b/gtk/gtkrange.c @@ -2597,13 +2597,6 @@ gtk_range_compute_slider_position (GtkRange *range, top = 0; bottom = top + trough_height; - /* Scale slider half extends over the trough edge */ - if (GTK_IS_SCALE (range)) - { - top -= min_slider_size / 2; - bottom += min_slider_size / 2; - } - /* slider height is the fraction (page_size / * total_adjustment_range) times the trough height in pixels */ @@ -2648,13 +2641,6 @@ gtk_range_compute_slider_position (GtkRange *range, left = 0; right = left + trough_width; - /* Scale slider half extends over the trough edge */ - if (GTK_IS_SCALE (range)) - { - left -= min_slider_size / 2; - right += min_slider_size / 2; - } - /* slider width is the fraction (page_size / * total_adjustment_range) times the trough width in pixels */ -- cgit v1.2.1