diff options
author | Timm Bäder <mail@baedert.org> | 2018-02-23 07:59:10 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2018-02-23 10:47:05 +0100 |
commit | 4095cac75cd139db23e6ed7269767827db3c643e (patch) | |
tree | 8191ca28ae679bb99fe7643bc4e990a8bd1c11d7 /gtk/gtkrange.c | |
parent | af4474f7520aca1c1b8e3bd91a33f57c97e5a6ec (diff) | |
download | gtk+-4095cac75cd139db23e6ed7269767827db3c643e.tar.gz |
range: Remove GtkScale special casing
This is unnecessary these days due to the negative margins of the
slider.
Diffstat (limited to 'gtk/gtkrange.c')
-rw-r--r-- | gtk/gtkrange.c | 14 |
1 files changed, 0 insertions, 14 deletions
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 */ |