]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/textctrl.cpp
don't compare iterator after calling erase() in ProcessPendingEvents() (replaces...
[wxWidgets.git] / src / gtk / textctrl.cpp
index 680d3872438ac61dd997107471b8ba93604aa5fb..3cd7d06b2ce8773f1b909b3276d45e753161e2d8 100644 (file)
@@ -579,6 +579,8 @@ bool wxTextCtrl::Create( wxWindow *parent,
         if (!HasFlag(wxNO_BORDER))
             gtk_scrolled_window_set_shadow_type( GTK_SCROLLED_WINDOW(m_widget), GTK_SHADOW_IN );
 
+        gtk_widget_add_events( GTK_WIDGET(m_text), GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK );
+
         GTK_WIDGET_UNSET_FLAGS( m_widget, GTK_CAN_FOCUS );
 #else
         // create our control ...