https://bugs.webkit.org/show_bug.cgi?id=72653
Patch by Elliot Glaysher <erg@chromium.org> on 2011-11-17
Reviewed by James Robinson.
* src/gtk/WebInputEventFactory.cpp:
(WebKit::gdkStateToWebEventModifiers): Remove a
GTK_CHECK_VERSION that will always be true, as the oldest
libgtk we support is 2.18.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@100704
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-11-17 Elliot Glaysher <erg@chromium.org>
+
+ [chromium] Don't include internal GTK headers so we build with GTK_DISABLE_SINGLE_INCLUDES
+
+ https://bugs.webkit.org/show_bug.cgi?id=72653
+
+ Reviewed by James Robinson.
+
+ * src/gtk/WebInputEventFactory.cpp:
+ (WebKit::gdkStateToWebEventModifiers): Remove a
+ GTK_CHECK_VERSION that will always be true, as the oldest
+ libgtk we support is 2.18.
+
+
2011-11-17 David Reveman <reveman@chromium.org>
[Chromium] Calls to paintContentsIfDirty() and updateCompositorResources() should be balanced.
#include <gdk/gdk.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
-#include <gtk/gtkversion.h>
#include <wtf/Assertions.h>
modifiers |= WebInputEvent::ControlKey;
if (state & GDK_MOD1_MASK)
modifiers |= WebInputEvent::AltKey;
-#if GTK_CHECK_VERSION(2, 10, 0)
if (state & GDK_META_MASK)
modifiers |= WebInputEvent::MetaKey;
-#endif
if (state & GDK_BUTTON1_MASK)
modifiers |= WebInputEvent::LeftButtonDown;
if (state & GDK_BUTTON2_MASK)