Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 639448
Collapse All | Expand All

(-)a/src/widget/gtkmathview_common.cc (-2 / +2 lines)
Lines 909-915 gtk_math_view_button_release_event(GtkWi Link Here
909
	  math_view->select_state == SELECT_STATE_NO &&
909
	  math_view->select_state == SELECT_STATE_NO &&
910
	  fabs(math_view->button_press_x - event->x) <= CLICK_SPACE_RANGE &&
910
	  fabs(math_view->button_press_x - event->x) <= CLICK_SPACE_RANGE &&
911
	  fabs(math_view->button_press_y - event->y) <= CLICK_SPACE_RANGE &&
911
	  fabs(math_view->button_press_y - event->y) <= CLICK_SPACE_RANGE &&
912
	  abs(math_view->button_press_time - event->time) <= CLICK_TIME_RANGE)
912
         abs((int)(math_view->button_press_time - event->time)) <= CLICK_TIME_RANGE)
913
	{
913
	{
914
	  // the mouse should have not moved more than one pixel in each direction
914
	  // the mouse should have not moved more than one pixel in each direction
915
	  // and the time elapsed from the press event should be no more than 250ms
915
	  // and the time elapsed from the press event should be no more than 250ms
Lines 969-975 gtk_math_view_motion_notify_event(GtkWid Link Here
969
      (math_view->select_state == SELECT_STATE_YES ||
969
      (math_view->select_state == SELECT_STATE_YES ||
970
       fabs(math_view->button_press_x - x) > CLICK_SPACE_RANGE ||
970
       fabs(math_view->button_press_x - x) > CLICK_SPACE_RANGE ||
971
       fabs(math_view->button_press_y - y) > CLICK_SPACE_RANGE ||
971
       fabs(math_view->button_press_y - y) > CLICK_SPACE_RANGE ||
972
       abs(math_view->button_press_time - event->time) > CLICK_TIME_RANGE))
972
       abs((int)(math_view->button_press_time - event->time)) > CLICK_TIME_RANGE))
973
    {
973
    {
974
      if (math_view->select_state == SELECT_STATE_NO)
974
      if (math_view->select_state == SELECT_STATE_NO)
975
	{
975
	{

Return to bug 639448