Date: Sun, 11 Sep 2016 18:10:56 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r421861 - head/x11-toolkits/gtkmathview/files Message-ID: <201609111810.u8BIAuH1007178@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Sun Sep 11 18:10:56 2016 New Revision: 421861 URL: https://svnweb.freebsd.org/changeset/ports/421861 Log: - Fix build on 11.x+ Added: head/x11-toolkits/gtkmathview/files/patch-src_widget_gtkmathview__common.cc (contents, props changed) Added: head/x11-toolkits/gtkmathview/files/patch-src_widget_gtkmathview__common.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-toolkits/gtkmathview/files/patch-src_widget_gtkmathview__common.cc Sun Sep 11 18:10:56 2016 (r421861) @@ -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) + {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609111810.u8BIAuH1007178>