aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-09-12 02:10:56 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-09-12 02:10:56 +0800
commit0617222e65500c782e34e5f3b2d526edf73d6329 (patch)
treef20c85447ce73a7c9b18b36500d310608a3cfd86
parent3b75c45b836e9fd9c5f3f0903bbbca2f9ba37380 (diff)
downloadfreebsd-ports-gnome-0617222e65500c782e34e5f3b2d526edf73d6329.tar.gz
freebsd-ports-gnome-0617222e65500c782e34e5f3b2d526edf73d6329.tar.zst
freebsd-ports-gnome-0617222e65500c782e34e5f3b2d526edf73d6329.zip
- Fix build on 11.x+
-rw-r--r--x11-toolkits/gtkmathview/files/patch-src_widget_gtkmathview__common.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/x11-toolkits/gtkmathview/files/patch-src_widget_gtkmathview__common.cc b/x11-toolkits/gtkmathview/files/patch-src_widget_gtkmathview__common.cc
new file mode 100644
index 000000000000..e9a31a1551b3
--- /dev/null
+++ b/x11-toolkits/gtkmathview/files/patch-src_widget_gtkmathview__common.cc
@@ -0,0 +1,20 @@
+--- src/widget/gtkmathview_common.cc.orig 2007-08-17 10:02:35 UTC
++++ src/widget/gtkmathview_common.cc
+@@ -909,7 +909,7 @@ gtk_math_view_button_release_event(GtkWi
+ math_view->select_state == SELECT_STATE_NO &&
+ fabs(math_view->button_press_x - event->x) <= CLICK_SPACE_RANGE &&
+ fabs(math_view->button_press_y - event->y) <= CLICK_SPACE_RANGE &&
+- abs(math_view->button_press_time - event->time) <= CLICK_TIME_RANGE)
++ abs((long)math_view->button_press_time - (long)event->time) <= CLICK_TIME_RANGE)
+ {
+ // the mouse should have not moved more than one pixel in each direction
+ // and the time elapsed from the press event should be no more than 250ms
+@@ -969,7 +969,7 @@ gtk_math_view_motion_notify_event(GtkWid
+ (math_view->select_state == SELECT_STATE_YES ||
+ fabs(math_view->button_press_x - x) > CLICK_SPACE_RANGE ||
+ fabs(math_view->button_press_y - y) > CLICK_SPACE_RANGE ||
+- abs(math_view->button_press_time - event->time) > CLICK_TIME_RANGE))
++ abs((long)math_view->button_press_time - (long)event->time) > CLICK_TIME_RANGE))
+ {
+ if (math_view->select_state == SELECT_STATE_NO)
+ {