]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't assume that KeySym is always defined as long in wxGTK.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 18 Jul 2013 10:07:18 +0000 (10:07 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 18 Jul 2013 10:07:18 +0000 (10:07 +0000)
Apparently this is not the case when using Wayland and using "%ld" to print it
out results in an assert failure.

Closes #15351.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp

index d57145134e2f636602392d002fedbfd3fbdcb5af..854937fed32d304fd9d2470e9455b9ab51a0ce45 100644 (file)
@@ -755,10 +755,10 @@ wxTranslateGTKKeyEventToWx(wxKeyEvent& event,
 
     KeySym keysym = gdk_event->keyval;
 
-    wxLogTrace(TRACE_KEYS, wxT("Key %s event: keysym = %ld"),
+    wxLogTrace(TRACE_KEYS, wxT("Key %s event: keysym = %lu"),
                event.GetEventType() == wxEVT_KEY_UP ? wxT("release")
                                                     : wxT("press"),
-               keysym);
+               static_cast<unsigned long>(keysym));
 
     long key_code = wxTranslateKeySymToWXKey(keysym, false /* !isChar */);