wok-next annotate 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
rev   line source
al@19893 1 diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp
al@19893 2 --- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2015-05-20 03:03:24.000000000 -0600
al@19893 3 +++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2016-02-07 11:30:42.392686308 -0700
al@19893 4 @@ -85,8 +85,8 @@
al@19893 5 guint32 eventTime = getEventTime(event);
al@19893 6
al@19893 7 if ((event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS)
al@19893 8 - || ((abs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance)
al@19893 9 - && (abs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance)
al@19893 10 + || ((fabs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance)
al@19893 11 + && (fabs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance)
al@19893 12 && (eventTime - m_previousClickTime < static_cast<guint>(doubleClickTime))
al@19893 13 && (buttonEvent->button == m_previousClickButton)))
al@19893 14 m_currentClickCount++;
al@19893 15 diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp
al@19893 16 --- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2015-05-20 03:03:24.000000000 -0600
al@19893 17 +++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2016-02-07 11:49:36.384691005 -0700
al@19893 18 @@ -659,7 +659,7 @@
al@19893 19 if (!std::isfinite(time))
al@19893 20 return String::fromUTF8(_("indefinite time"));
al@19893 21
al@19893 22 - int seconds = static_cast<int>(abs(time));
al@19893 23 + int seconds = static_cast<int>(fabs(time));
al@19893 24 int days = seconds / (60 * 60 * 24);
al@19893 25 int hours = seconds / (60 * 60);
al@19893 26 int minutes = (seconds / 60) % 60;