From e1ec30b818246380b0213dfdc1353635b1b7bc49 Mon Sep 17 00:00:00 2001 From: marcus Date: Sat, 23 Oct 2004 03:22:40 +0000 Subject: Fix a potential startup crash in some multi-threaded GNOME apps. PR: 71439 Submitted by: Jean-Yves Lefort git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3009 df743ca5-7f9a-e211-a948-0013205c9059 --- .../libgnomeui/files/patch-libgnomeui_gnome-ice.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 x11-toolkits/libgnomeui/files/patch-libgnomeui_gnome-ice.c (limited to 'x11-toolkits/libgnomeui/files') diff --git a/x11-toolkits/libgnomeui/files/patch-libgnomeui_gnome-ice.c b/x11-toolkits/libgnomeui/files/patch-libgnomeui_gnome-ice.c new file mode 100644 index 000000000..8c5bbd501 --- /dev/null +++ b/x11-toolkits/libgnomeui/files/patch-libgnomeui_gnome-ice.c @@ -0,0 +1,20 @@ +--- libgnomeui/gnome-ice.c.orig Fri Oct 22 23:22:11 2004 ++++ libgnomeui/gnome-ice.c Fri Oct 22 23:22:38 2004 +@@ -54,6 +54,8 @@ + IceConn connection = (IceConn) data; + IceProcessMessagesStatus status; + ++ GDK_THREADS_ENTER(); ++ + status = IceProcessMessages (connection, NULL, NULL); + + if (status == IceProcessMessagesIOError) +@@ -73,6 +75,8 @@ + IceCloseConnection (connection); + } + } ++ ++ GDK_THREADS_LEAVE(); + + return TRUE; + } -- cgit v1.2.3