aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-selection.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-selection.c')
-rw-r--r--e-util/e-selection.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/e-util/e-selection.c b/e-util/e-selection.c
index 1c5d11b6e4..041b30c4f2 100644
--- a/e-util/e-selection.c
+++ b/e-util/e-selection.c
@@ -704,11 +704,8 @@ e_clipboard_wait_for_calendar (GtkClipboard *clipboard)
clipboard, (GtkClipboardTextReceivedFunc)
clipboard_wait_for_text_cb, &results);
- if (g_main_loop_is_running (results.loop)) {
- GDK_THREADS_LEAVE ();
+ if (g_main_loop_is_running (results.loop))
g_main_loop_run (results.loop);
- GDK_THREADS_ENTER ();
- }
g_main_loop_unref (results.loop);
@@ -729,11 +726,8 @@ e_clipboard_wait_for_directory (GtkClipboard *clipboard)
clipboard, (GtkClipboardTextReceivedFunc)
clipboard_wait_for_text_cb, &results);
- if (g_main_loop_is_running (results.loop)) {
- GDK_THREADS_LEAVE ();
+ if (g_main_loop_is_running (results.loop))
g_main_loop_run (results.loop);
- GDK_THREADS_ENTER ();
- }
g_main_loop_unref (results.loop);
@@ -754,11 +748,8 @@ e_clipboard_wait_for_html (GtkClipboard *clipboard)
clipboard, (GtkClipboardTextReceivedFunc)
clipboard_wait_for_text_cb, &results);
- if (g_main_loop_is_running (results.loop)) {
- GDK_THREADS_LEAVE ();
+ if (g_main_loop_is_running (results.loop))
g_main_loop_run (results.loop);
- GDK_THREADS_ENTER ();
- }
g_main_loop_unref (results.loop);