X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0a6476912577c0ce870b1d2a829825bad45d35a8..6495ea3f1dd7ea342be730262d5cdfd19b3933db:/src/gtk/gsockgtk.cpp?ds=inline diff --git a/src/gtk/gsockgtk.cpp b/src/gtk/gsockgtk.cpp index ffcd57563c..af5fbe635d 100644 --- a/src/gtk/gsockgtk.cpp +++ b/src/gtk/gsockgtk.cpp @@ -21,6 +21,8 @@ #include "wx/unix/gsockunx.h" +extern "C" { +static void _GSocket_GDK_Input(gpointer data, gint source, GdkInputCondition condition) @@ -32,6 +34,7 @@ void _GSocket_GDK_Input(gpointer data, if (condition & GDK_INPUT_WRITE) socket->Detected_Write(); } +} bool GSocketGUIFunctionsTableConcrete::CanUseEventLoop() { return true; } @@ -106,9 +109,10 @@ void GSocketGUIFunctionsTableConcrete::Uninstall_Callback(GSocket *socket, GSock } if (m_id[c] != -1) + { gdk_input_remove(m_id[c]); - - m_id[c] = -1; + m_id[c] = -1; + } } void GSocketGUIFunctionsTableConcrete::Enable_Events(GSocket *socket)