[rhythmbox] clipboard: make sure all sync happen on the main thread
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] clipboard: make sure all sync happen on the main thread
- Date: Fri, 6 Dec 2013 05:57:33 +0000 (UTC)
commit 838e94599025161717aea405e975898421a16319
Author: Jonathan Matthew <jonathan d14n org>
Date: Fri Dec 6 15:57:14 2013 +1000
clipboard: make sure all sync happen on the main thread
shell/rb-shell-clipboard.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/shell/rb-shell-clipboard.c b/shell/rb-shell-clipboard.c
index 1f47b0a..f0dbed6 100644
--- a/shell/rb-shell-clipboard.c
+++ b/shell/rb-shell-clipboard.c
@@ -666,7 +666,9 @@ rb_shell_clipboard_entry_deleted_cb (RhythmDB *db,
if (l != NULL) {
clipboard->priv->entries = g_list_delete_link (clipboard->priv->entries, l);
rhythmdb_entry_unref (entry);
- rb_shell_clipboard_sync (clipboard);
+ if (clipboard->priv->idle_sync_id == 0)
+ clipboard->priv->idle_sync_id = g_idle_add ((GSourceFunc)
rb_shell_clipboard_sync_idle,
+ clipboard);
}
GDK_THREADS_LEAVE ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]