X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/60913641356f364a5efee5966d3a3b0b48c01001..85284ca4b226d9a1ab6bed26c5eaa480543649d5:/src/gtk1/sockgtk.cpp diff --git a/src/gtk1/sockgtk.cpp b/src/gtk1/sockgtk.cpp index b8b1ecb612..ae2225a6a1 100644 --- a/src/gtk1/sockgtk.cpp +++ b/src/gtk1/sockgtk.cpp @@ -28,26 +28,26 @@ void wxSocket_GDK_Input(gpointer data, gint WXUNUSED(source), GdkInputCondition condition) { - wxSocketImpl const *socket = static_cast(data); + wxFDIOHandler * const handler = static_cast(data); - if ( condition & GDK_INPUT_READ ) - socket->Detected_Read(); - if ( condition & GDK_INPUT_WRITE ) - socket->Detected_Write(); + if ( condition & GDK_INPUT_READ ) + handler->OnReadWaiting(); + if ( condition & GDK_INPUT_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 ); }