]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/gsockgtk.cpp
Removed gsockosx.cpp which had been copied to src/mac/corefoundation long ago.
[wxWidgets.git] / src / gtk / gsockgtk.cpp
index ffcd57563c224a9e491d874bc024a148f6c996a9..af5fbe635dcc799fe3b35ec3d57ba8138734015d 100644 (file)
@@ -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)