From 3a6824114e93c8b44a7755f8c989cc9977384d9a Mon Sep 17 00:00:00 2001 From: jylefort Date: Mon, 1 Aug 2005 02:09:47 +0000 Subject: Fix yet another thread-safety bug: http://bugzilla.gnome.org/show_bug.cgi?id=312180 git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4367 df743ca5-7f9a-e211-a948-0013205c9059 --- x11-toolkits/libgnomeui/Makefile | 3 ++- ...patch-libgnomeui_gnome-authentication-manager.c | 30 ++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 x11-toolkits/libgnomeui/files/patch-libgnomeui_gnome-authentication-manager.c (limited to 'x11-toolkits') diff --git a/x11-toolkits/libgnomeui/Makefile b/x11-toolkits/libgnomeui/Makefile index ac50d96f8..a8def6161 100644 --- a/x11-toolkits/libgnomeui/Makefile +++ b/x11-toolkits/libgnomeui/Makefile @@ -3,10 +3,11 @@ # Whom: Joe Marcus Clarke # # $FreeBSD$ -# $MCom: ports/x11-toolkits/libgnomeui/Makefile,v 1.58 2005/07/03 17:31:08 ahze Exp $ +# $MCom: ports/x11-toolkits/libgnomeui/Makefile,v 1.59 2005/07/04 00:12:01 marcus Exp $ PORTNAME= libgnomeui PORTVERSION= 2.11.1 +PORTREVISION= 1 CATEGORIES= x11-toolkits gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.11 diff --git a/x11-toolkits/libgnomeui/files/patch-libgnomeui_gnome-authentication-manager.c b/x11-toolkits/libgnomeui/files/patch-libgnomeui_gnome-authentication-manager.c new file mode 100644 index 000000000..99990e1b9 --- /dev/null +++ b/x11-toolkits/libgnomeui/files/patch-libgnomeui_gnome-authentication-manager.c @@ -0,0 +1,30 @@ +--- libgnomeui/gnome-authentication-manager.c.orig Mon Aug 1 03:34:03 2005 ++++ libgnomeui/gnome-authentication-manager.c Mon Aug 1 03:36:29 2005 +@@ -849,7 +849,11 @@ + info->response = response; + info->response_data = response_data; + ++ GDK_THREADS_ENTER (); ++ + present_question_dialog_nonblocking (info); ++ ++ GDK_THREADS_LEAVE (); + } + + static void /* GnomeVFSModuleCallback */ +@@ -870,11 +874,15 @@ + in_real = (GnomeVFSModuleCallbackQuestionIn *)in; + out_real = (GnomeVFSModuleCallbackQuestionOut *)out; + ++ GDK_THREADS_ENTER (); ++ + out_real->answer = -1; /* Set a default value */ + dialog = create_question_dialog (in_real->primary_message, in_real->secondary_message, in_real->choices); + out_real->answer = gtk_dialog_run (GTK_DIALOG(dialog)); + + gtk_widget_destroy (GTK_WIDGET (dialog)); ++ ++ GDK_THREADS_LEAVE (); + } + + -- cgit v1.2.3