X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3646fd68cb4fcf3242e8c6ba87bf99f409777032..f42b1601d6a55f3c2b7e7c22894727bda70d8505:/src/gtk/gsockgtk.c?ds=sidebyside diff --git a/src/gtk/gsockgtk.c b/src/gtk/gsockgtk.c index e462a6aece..8677ef3626 100644 --- a/src/gtk/gsockgtk.c +++ b/src/gtk/gsockgtk.c @@ -10,25 +10,19 @@ #if wxUSE_SOCKETS #include -#include -#include -#include -#include "../unix/gsockunx.h" +#include "gdk/gdk.h" +#include "glib.h" +#include "wx/gsocket.h" +#include "wx/unix/gsockunx.h" void _GSocket_GDK_Input(gpointer data, gint source, GdkInputCondition condition) { GSocket *socket = (GSocket *)data; - switch (condition) { - case GDK_INPUT_READ: + if (condition & GDK_INPUT_READ) _GSocket_Detected_Read(socket); - break; - case GDK_INPUT_WRITE: + if (condition & GDK_INPUT_WRITE) _GSocket_Detected_Write(socket); - break; - default: - break; - } } void _GSocket_GUI_Init(GSocket *socket)