]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/textentry.cpp
Fix mouse coordinates in scrolled views to be those that wxWidgets expects.
[wxWidgets.git] / src / gtk / textentry.cpp
index 040dc0ef8d53c7f4f4ad8774bc7620599eadffc9..18ca8fafc4380acf97f3a64319698c3faa24780e 100644 (file)
     #pragma hdrstop
 #endif
 
+#if wxUSE_TEXTCTRL || wxUSE_COMBOBOX
+
 #ifndef WX_PRECOMP
+    #include "wx/window.h"
+    #include "wx/textctrl.h"
 #endif //WX_PRECOMP
 
 #include "wx/textentry.h"
@@ -40,9 +44,9 @@ extern "C"
 // "insert_text" handler for GtkEntry
 static void
 wx_gtk_insert_text_callback(GtkEditable *editable,
-                            const gchar *new_text,
-                            gint new_text_length,
-                            gint *position,
+                            const gchar * WXUNUSED(new_text),
+                            gint WXUNUSED(new_text_length),
+                            gint * WXUNUSED(position),
                             wxTextEntry *text)
 {
     // we should only be called if we have a max len limit at all
@@ -282,3 +286,4 @@ void wxTextEntry::SendMaxLenEvent()
     win->GetEventHandler()->ProcessEvent(event);
 }
 
+#endif // wxUSE_TEXTCTRL || wxUSE_COMBOBOX