wok-next diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/webkitgtk/stuff/patches/webkitgtk-2.4.9-abs.patch Sat Jul 21 17:03:50 2018 +0300 1.3 @@ -0,0 +1,26 @@ 1.4 +diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp 1.5 +--- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2015-05-20 03:03:24.000000000 -0600 1.6 ++++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2016-02-07 11:30:42.392686308 -0700 1.7 +@@ -85,8 +85,8 @@ 1.8 + guint32 eventTime = getEventTime(event); 1.9 + 1.10 + if ((event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS) 1.11 +- || ((abs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance) 1.12 +- && (abs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance) 1.13 ++ || ((fabs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance) 1.14 ++ && (fabs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance) 1.15 + && (eventTime - m_previousClickTime < static_cast<guint>(doubleClickTime)) 1.16 + && (buttonEvent->button == m_previousClickButton))) 1.17 + m_currentClickCount++; 1.18 +diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 1.19 +--- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2015-05-20 03:03:24.000000000 -0600 1.20 ++++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2016-02-07 11:49:36.384691005 -0700 1.21 +@@ -659,7 +659,7 @@ 1.22 + if (!std::isfinite(time)) 1.23 + return String::fromUTF8(_("indefinite time")); 1.24 + 1.25 +- int seconds = static_cast<int>(abs(time)); 1.26 ++ int seconds = static_cast<int>(fabs(time)); 1.27 + int days = seconds / (60 * 60 * 24); 1.28 + int hours = seconds / (60 * 60); 1.29 + int minutes = (seconds / 60) % 60;