X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5819297093708ae3198004cf0c533b4db248e9ff..eb69d46e705906142f5c814f31c892282f4b583c:/src/gtk1/textctrl.cpp diff --git a/src/gtk1/textctrl.cpp b/src/gtk1/textctrl.cpp index 79726b054c..648fdab6a5 100644 --- a/src/gtk1/textctrl.cpp +++ b/src/gtk1/textctrl.cpp @@ -310,6 +310,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_UNSET_FLAGS( m_widget, GTK_CAN_FOCUS ); #else // create our control ... m_text = gtk_text_new( (GtkAdjustment *) NULL, (GtkAdjustment *) NULL ); @@ -443,8 +445,8 @@ bool wxTextCtrl::Create( wxWindow *parent, else #endif { - gtk_signal_connect( GTK_OBJECT(m_text), "changed", - GTK_SIGNAL_FUNC(gtk_text_changed_callback), (gpointer)this); + gtk_signal_connect( GTK_OBJECT(m_text), "changed", + GTK_SIGNAL_FUNC(gtk_text_changed_callback), (gpointer)this); } // we don't set a valid background colour, because the window