aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-selection.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-08-06 08:59:18 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-08-06 10:12:26 +0800
commit07be2453e059c1cf0a5a2f8f7883e7de84411e97 (patch)
treea35669cf5ea51b57da5635b0fdc30ee81f488c5f /e-util/e-selection.c
parent74d33d365d99684b279088f2a24b53896b51f899 (diff)
downloadgsoc2013-evolution-07be2453e059c1cf0a5a2f8f7883e7de84411e97.tar.gz
gsoc2013-evolution-07be2453e059c1cf0a5a2f8f7883e7de84411e97.tar.zst
gsoc2013-evolution-07be2453e059c1cf0a5a2f8f7883e7de84411e97.zip
Remove all GDK threads usage.
According to [1], we don't need to worry about GDK's global lock since we don't call gdk_threads_init() or gdk_threads_set_lock_functions(). The GDK threads API is being aggressively deprecated by GTK+ developers so let's just abandon it entirely. I've never really understood when you're supposed to use it or not use it anyway, so it's good to be rid of this confusion. [1] https://mail.gnome.org/archives/desktop-devel-list/2012-August/msg00005.html
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);