wok-next view webkitgtk/stuff/patches/webkitgtk-2.4.9-abs.patch @ rev 20900

gdk-pixbuf: build man pages; glib-networking: up (2.56.1); glibmm: up (2.56.0); gnupg: up (2.2.9); gsettings-desktop-schemas: up (3.28.0); tint2: up (16.4).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jul 21 17:03:50 2018 +0300 (2018-07-21)
parents
children
line source
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);
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"));
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;