X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d422d01eec769f5339087b4b3ad352d3d164bf1b..866592d872daa1f4e3d44948d7d3a6c90b0af9d0:/src/gtk/gsockgtk.c diff --git a/src/gtk/gsockgtk.c b/src/gtk/gsockgtk.c index 006a04fbf0..8677ef3626 100644 --- a/src/gtk/gsockgtk.c +++ b/src/gtk/gsockgtk.c @@ -13,22 +13,16 @@ #include "gdk/gdk.h" #include "glib.h" #include "wx/gsocket.h" -#include "../unix/gsockunx.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)