]> git.saurik.com Git - wxWidgets.git/commitdiff
Multi-thread fix from Angel [ patch 1281057 ]
authorKevin Hock <hockkn@yahoo.com>
Sat, 3 Sep 2005 01:01:06 +0000 (01:01 +0000)
committerKevin Hock <hockkn@yahoo.com>
Sat, 3 Sep 2005 01:01:06 +0000 (01:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/gsockgtk.cpp
src/gtk1/gsockgtk.cpp

index ae8e1a9da5382eb5c3426f66bd26b7daf15c5d85..af5fbe635dcc799fe3b35ec3d57ba8138734015d 100644 (file)
@@ -109,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)
index ae8e1a9da5382eb5c3426f66bd26b7daf15c5d85..af5fbe635dcc799fe3b35ec3d57ba8138734015d 100644 (file)
@@ -109,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)