]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/menu.cpp
Support encodings in wxGTK_CONV_BACK() in the same way as we do it in
[wxWidgets.git] / src / gtk / menu.cpp
index 7f4d87855ddfec40c5d8444d1dc961f3638cffc9..78539a50de79a6e59a803f3b4afd2b7dae1e0007 100644 (file)
@@ -1547,8 +1547,9 @@ static wxString GetGtkHotKey( const wxMenuItem& item )
             default:
                 if ( code < 127 )
                 {
-                    wxString name = wxGTK_CONV_BACK( gdk_keyval_name((guint)code) );
-                    if ( name )
+                    const wxString
+                        name = wxGTK_CONV_BACK_SYS(gdk_keyval_name((guint)code));
+                    if ( !name.empty() )
                     {
                         hotkey << name;
                         break;