]> git.pld-linux.org Git - packages/gtk-webkit3.git/blob - abs.patch
- added icu59 patch (fix build with icu >= 59)
[packages/gtk-webkit3.git] / abs.patch
1 diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp
2 --- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp        2015-05-20 03:03:24.000000000 -0600
3 +++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp     2016-02-07 11:30:42.392686308 -0700
4 @@ -85,8 +85,8 @@
5      guint32 eventTime = getEventTime(event);
6  
7      if ((event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS)
8 -        || ((abs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance)
9 -            && (abs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance)
10 +        || ((fabs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance)
11 +            && (fabs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance)
12              && (eventTime - m_previousClickTime < static_cast<guint>(doubleClickTime))
13              && (buttonEvent->button == m_previousClickButton)))
14          m_currentClickCount++;
15 diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
16 --- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp    2015-05-20 03:03:24.000000000 -0600
17 +++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2016-02-07 11:49:36.384691005 -0700
18 @@ -659,7 +659,7 @@
19      if (!std::isfinite(time))
20          return String::fromUTF8(_("indefinite time"));
21  
22 -    int seconds = static_cast<int>(abs(time));
23 +    int seconds = static_cast<int>(fabs(time));
24      int days = seconds / (60 * 60 * 24);
25      int hours = seconds / (60 * 60);
26      int minutes = (seconds / 60) % 60;
This page took 0.497754 seconds and 3 git commands to generate.