[Xfce4-commits] <exo:master> Use new thread functions if available.

Nick Schermer noreply at xfce.org
Sun Nov 4 20:04:02 CET 2012


Updating branch refs/heads/master
         to c48d8fdc0a969421777174fdabba91cc47d2baf5 (commit)
       from 4401783edf202a815b2442c29941cb53b75b58c1 (commit)

commit c48d8fdc0a969421777174fdabba91cc47d2baf5
Author: Nick Schermer <nick at xfce.org>
Date:   Sun Nov 4 18:03:38 2012 +0100

    Use new thread functions if available.

 exo-desktop-item-edit/exo-die-command-model.c |    4 ++++
 exo-desktop-item-edit/exo-die-desktop-model.c |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/exo-desktop-item-edit/exo-die-command-model.c b/exo-desktop-item-edit/exo-die-command-model.c
index 45febeb..7998f0e 100644
--- a/exo-desktop-item-edit/exo-die-command-model.c
+++ b/exo-desktop-item-edit/exo-die-command-model.c
@@ -151,8 +151,12 @@ exo_die_command_model_init (ExoDieCommandModel *command_model)
   command_model->stamp = g_random_int ();
 
   /* spawn the collector thread */
+#if GLIB_CHECK_VERSION (2, 32, 0)
+  command_model->collect_thread = g_thread_new ("ExoCommandCollect", exo_die_command_model_collect_thread, command_model);
+#else
   command_model->collect_thread = g_thread_create_full (exo_die_command_model_collect_thread, command_model,
                                                         0, TRUE, FALSE, G_THREAD_PRIORITY_LOW, NULL);
+#endif
 }
 
 
diff --git a/exo-desktop-item-edit/exo-die-desktop-model.c b/exo-desktop-item-edit/exo-die-desktop-model.c
index efe338f..a74c85a 100644
--- a/exo-desktop-item-edit/exo-die-desktop-model.c
+++ b/exo-desktop-item-edit/exo-die-desktop-model.c
@@ -150,8 +150,12 @@ exo_die_desktop_model_init (ExoDieDesktopModel *desktop_model)
   desktop_model->stamp = g_random_int ();
 
   /* spawn the collector thread */
+#if GLIB_CHECK_VERSION (2, 32, 0)
+  desktop_model->collect_thread = g_thread_new ("ExoDesktopCollect", exo_die_desktop_model_collect_thread, desktop_model);
+#else
   desktop_model->collect_thread = g_thread_create_full (exo_die_desktop_model_collect_thread, desktop_model,
                                                         0, TRUE, FALSE, G_THREAD_PRIORITY_LOW, NULL);
+#endif
 }
 
 


More information about the Xfce4-commits mailing list