]> git.sesse.net Git - vlc/commitdiff
* modules/gui/wxwindows/interface.cpp: butt-ugly workaround for accelerators' bug...
authorGildas Bazin <gbazin@videolan.org>
Mon, 16 May 2005 13:44:05 +0000 (13:44 +0000)
committerGildas Bazin <gbazin@videolan.org>
Mon, 16 May 2005 13:44:05 +0000 (13:44 +0000)
modules/gui/wxwindows/interface.cpp

index d1b316984ef74a9c112284fca7aaa3918964cb1b..69db0edc50e37720bdbbbc55d25afde1ae92e6da 100644 (file)
@@ -241,6 +241,11 @@ Interface::Interface( intf_thread_t *_p_intf, long style ):
     /* Create a dummy widget that can get the keyboard focus */
     wxWindow *p_dummy = new wxWindow( this, 0, wxDefaultPosition,
                                       wxSize(0,0) );
+#if defined(__WXGTK20__) && wxCHECK_VERSION(2,5,6)
+    /* As ugly as your butt! Please remove when wxWidgets 2.6 fixed their
+     * Accelerators bug. */
+    p_dummy->m_imData = 0;
+#endif
     p_dummy->SetFocus();
     frame_sizer->Add( p_dummy, 0, 0 );