diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-12-02 15:34:39 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-12-02 15:34:39 -0500 |
commit | 3a41637be0104a349e3151a6ed53eb2ca94f88de (patch) | |
tree | f8420c95987830ad5d27aa0203f5092b206590fa /nonprism/webkitgtk/webkitgtk-2.4.9-abs.patch | |
parent | 8009532d60c066ae89b559d9405eeb0f6d886dee (diff) | |
download | abslibre-3a41637be0104a349e3151a6ed53eb2ca94f88de.tar.gz abslibre-3a41637be0104a349e3151a6ed53eb2ca94f88de.tar.bz2 abslibre-3a41637be0104a349e3151a6ed53eb2ca94f88de.zip |
webkitgtk: Add webkitgtk-2.4.9-abs.patch
Diffstat (limited to 'nonprism/webkitgtk/webkitgtk-2.4.9-abs.patch')
-rw-r--r-- | nonprism/webkitgtk/webkitgtk-2.4.9-abs.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nonprism/webkitgtk/webkitgtk-2.4.9-abs.patch b/nonprism/webkitgtk/webkitgtk-2.4.9-abs.patch new file mode 100644 index 000000000..9a1c5f990 --- /dev/null +++ b/nonprism/webkitgtk/webkitgtk-2.4.9-abs.patch @@ -0,0 +1,26 @@ +diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp +--- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2015-05-20 03:03:24.000000000 -0600 ++++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2016-02-07 11:30:42.392686308 -0700 +@@ -85,8 +85,8 @@ + guint32 eventTime = getEventTime(event); + + if ((event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS) +- || ((abs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance) +- && (abs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance) ++ || ((fabs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance) ++ && (fabs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance) + && (eventTime - m_previousClickTime < static_cast<guint>(doubleClickTime)) + && (buttonEvent->button == m_previousClickButton))) + m_currentClickCount++; +diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp +--- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2015-05-20 03:03:24.000000000 -0600 ++++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2016-02-07 11:49:36.384691005 -0700 +@@ -659,7 +659,7 @@ + if (!std::isfinite(time)) + return String::fromUTF8(_("indefinite time")); + +- int seconds = static_cast<int>(abs(time)); ++ int seconds = static_cast<int>(fabs(time)); + int days = seconds / (60 * 60 * 24); + int hours = seconds / (60 * 60); + int minutes = (seconds / 60) % 60; |