[gnome-font-viewer] font-viewer: don't use deprecated GThread API



commit df01bdeacd09484623732355a6cb872b3130047f
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Oct 25 11:54:50 2011 -0400

    font-viewer: don't use deprecated GThread API

 configure.ac           |    2 +-
 src/font-thumbnailer.c |    1 -
 src/totem-resources.c  |    2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 033d0ff..0bafd3b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -39,7 +39,7 @@ AC_CACHE_SAVE
 
 GLIB_GSETTINGS
 
-GLIB_MIN_VERSION=2.28.0
+GLIB_MIN_VERSION=2.31.0
 GTK_MIN_VERSION=3.0.0
 
 PKG_CHECK_MODULES(FONTVIEW,
diff --git a/src/font-thumbnailer.c b/src/font-thumbnailer.c
index 470670c..a59e12a 100644
--- a/src/font-thumbnailer.c
+++ b/src/font-thumbnailer.c
@@ -279,7 +279,6 @@ main (int argc,
     setlocale (LC_ALL, "");
 
     g_type_init ();
-    g_thread_init (NULL);
 
     context = g_option_context_new (NULL);
     g_option_context_add_main_entries (context, options, GETTEXT_PACKAGE);
diff --git a/src/totem-resources.c b/src/totem-resources.c
index f3831e7..51817cc 100644
--- a/src/totem-resources.c
+++ b/src/totem-resources.c
@@ -112,7 +112,7 @@ totem_resources_monitor_start (const char *input, gint wall_clock_time)
 		sleep_time = wall_clock_time;
 
 	finished = FALSE;
-	g_thread_create (time_monitor, (gpointer) input, FALSE, NULL);
+        g_thread_new ("time-monitor", time_monitor, (gpointer) input);
 }
 
 void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]