[gtk+] range: simplify calculation
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] range: simplify calculation
- Date: Sun, 6 Mar 2016 03:09:50 +0000 (UTC)
commit 27a6183b98e3769a15add5dc0ef0ed7cbb6b65bc
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Mar 5 19:08:14 2016 -0800
range: simplify calculation
gtk/gtkrange.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c
index 0377707..c80f8b7 100644
--- a/gtk/gtkrange.c
+++ b/gtk/gtkrange.c
@@ -2753,7 +2753,7 @@ gtk_range_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
x - slider_alloc.width);
/* compute new value for warped slider */
- new_value = slider_low_value + (slider_high_value - slider_low_value) / 2;
+ new_value = (slider_low_value + slider_high_value) / 2;
gtk_range_compute_slider_position (range, new_value, &slider);
update_initial_slider_position (range, x, y, &slider);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]