X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/13289f04aee52cae316f984163f4f38d32d2eaf4..5de76427c87d8289f5c343cef16e9375056fc49f:/src/gtk/textctrl.cpp diff --git a/src/gtk/textctrl.cpp b/src/gtk/textctrl.cpp index 59c3d33980..deb1db70fb 100644 --- a/src/gtk/textctrl.cpp +++ b/src/gtk/textctrl.cpp @@ -59,7 +59,8 @@ bool wxTextCtrl::Create( wxWindow *parent, wxWindowID id, const wxString &value, PreCreation( parent, id, pos, size, style, name ); bool bMultiLine = (style & wxTE_MULTILINE) != 0; - if ( bMultiLine ) { + if ( bMultiLine ) + { // a multi-line edit control: create a vertical scrollbar by default and // horizontal if requested bool bHasHScrollbar = (style & wxHSCROLL) != 0; @@ -308,7 +309,7 @@ void wxTextCtrl::OnChar( wxKeyEvent &WXUNUSED(event) ) { }; -int wxTextCtrl::overflow(int c) +int wxTextCtrl::overflow( int WXUNUSED(c) ) { int len = pptr() - pbase(); char *txt = new char[len+1]; @@ -385,3 +386,11 @@ wxTextCtrl& wxTextCtrl::operator<<(const char c) return *this; } +GtkWidget* wxTextCtrl::GetDropTargetWidget(void) +{ + return GTK_WIDGET(m_text); +}; + + + +