wxKeyEvent event( wxEVT_KEY_DOWN );
bool ret = false;
bool return_after_IM = false;
- win->m_imData->lastKeyEvent = gdk_event;
if( wxTranslateGTKKeyEventToWx(event, win, gdk_event) )
{
// GdkDisplay is a GTK+ 2.2.0 thing
#if defined(__WXGTK20__) && GTK_CHECK_VERSION(2, 2, 0)
if ( gdk_event->type == GDK_2BUTTON_PRESS &&
+ !gtk_check_version(2,2,0) &&
gdk_event->button >= 1 && gdk_event->button <= 3 )
{
// Reset GDK internal timestamp variables in order to disable GDK
{
wxASSERT_MSG( (m_widget != NULL), wxT("invalid window") );
-#ifdef __WXGTK20__
- // Create input method handler
- m_imData = new wxGtkIMData;
-#endif
-
if (m_wxwindow)
{
if (!m_noExpose)
}
#ifdef __WXGTK20__
+ // Create input method handler
+ m_imData = new wxGtkIMData;
+
// Cannot handle drawing preedited text yet
gtk_im_context_set_use_preedit( m_imData->context, FALSE );