summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/libgnomeui/files/patch-libgnomeui_gnome-authentication-manager.c
blob: 99990e1b9f63715d2f3eaf9f5f4d180c110142ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 ();
 }