4.10.3-2: add gtktreeviewmodel fixes
[arch-packages.git] / gtkmathview / repos / extra-x86_64 / gtkmathview-gcc7.patch
blobc4c40ea77c98eaca3946f54bb927572748d133f3
1 Description: Fix "call of overloaded 'abs(guint32)' is ambiguous"
2 Author: Dmitry Marakasov <amdmi3@FreeBSD.org>
3 Origin: https://svnweb.freebsd.org/ports/head/x11-toolkits/gtkmathview/files/patch-src_widget_gtkmathview__common.cc?view=markup
4 Bug-Debian: https://bugs.debian.org/853436
5 Last-Update: 2017-12-19
7 --- a/src/widget/gtkmathview_common.cc
8 +++ b/src/widget/gtkmathview_common.cc
9 @@ -909,7 +909,7 @@
10 math_view->select_state == SELECT_STATE_NO &&
11 fabs(math_view->button_press_x - event->x) <= CLICK_SPACE_RANGE &&
12 fabs(math_view->button_press_y - event->y) <= CLICK_SPACE_RANGE &&
13 - abs(math_view->button_press_time - event->time) <= CLICK_TIME_RANGE)
14 + abs((long)math_view->button_press_time - (long)event->time) <= CLICK_TIME_RANGE)
16 // the mouse should have not moved more than one pixel in each direction
17 // and the time elapsed from the press event should be no more than 250ms
18 @@ -969,7 +969,7 @@
19 (math_view->select_state == SELECT_STATE_YES ||
20 fabs(math_view->button_press_x - x) > CLICK_SPACE_RANGE ||
21 fabs(math_view->button_press_y - y) > CLICK_SPACE_RANGE ||
22 - abs(math_view->button_press_time - event->time) > CLICK_TIME_RANGE))
23 + abs((long)math_view->button_press_time - (long)event->time) > CLICK_TIME_RANGE))
25 if (math_view->select_state == SELECT_STATE_NO)