]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/sockgtk.cpp
fix compilation breaking typo in recent commit
[wxWidgets.git] / src / gtk / sockgtk.cpp
index bd80f8594249610a0d848f535836e3639e75cb60..ae2225a6a12a1c2954efc07b9b2adc997fa7bd3b 100644 (file)
@@ -28,26 +28,26 @@ void wxSocket_GDK_Input(gpointer data,
                         gint WXUNUSED(source),
                         GdkInputCondition condition)
 {
-    wxSocketImpl * const socket = static_cast<wxSocketImpl *>(data);
+    wxFDIOHandler * const handler = static_cast<wxFDIOHandler *>(data);
 
     if ( condition & GDK_INPUT_READ )
-        socket->Detected_Read();
+        handler->OnReadWaiting();
     if ( condition & GDK_INPUT_WRITE )
-        socket->Detected_Write();
+        handler->OnWriteWaiting();
 }
 }
 
 class GTKSocketManager : public wxSocketInputBasedManager
 {
 public:
-    virtual int AddInput(wxSocketImpl *socket, SocketDir d)
+    virtual int AddInput(wxFDIOHandler *handler, int fd, SocketDir d)
     {
         return gdk_input_add
                (
-                    socket->m_fd,
+                    fd,
                     d == FD_OUTPUT ? GDK_INPUT_WRITE : GDK_INPUT_READ,
                     wxSocket_GDK_Input,
-                    socket
+                    handler
                );
     }