[evince/wip/app: 7/23] thumbnailer: Remove glib < 2.32 compat code



commit 82279c37a531ac9591bda7c3e635c6d4f8251008
Author: Christian Persch <chpe gnome org>
Date:   Fri Jun 8 18:31:17 2012 +0200

    thumbnailer: Remove glib < 2.32 compat code

 thumbnailer/evince-thumbnailer.c |   22 +++-------------------
 1 files changed, 3 insertions(+), 19 deletions(-)
---
diff --git a/thumbnailer/evince-thumbnailer.c b/thumbnailer/evince-thumbnailer.c
index 774e884..08ff649 100644
--- a/thumbnailer/evince-thumbnailer.c
+++ b/thumbnailer/evince-thumbnailer.c
@@ -83,12 +83,8 @@ static void
 time_monitor_start (const char *input)
 {
         finished = FALSE;
-#if (!GLIB_CHECK_VERSION(2,31,0))
-/* Remove this once we bump dependencies to glib >= 2.31.0 */
-        g_thread_create (time_monitor, (gpointer) input, FALSE, NULL);
-#else
-	g_thread_new ("EvThumbnailerTimer", time_monitor, (gpointer) input);
-#endif
+
+        g_thread_new ("ThumbnailerTimer", time_monitor, (gpointer) input);
 }
 
 static void
@@ -299,12 +295,6 @@ main (int argc, char *argv[])
 
 	g_type_init ();
 
-#if (!GLIB_CHECK_VERSION(2,31,0))
-/* Remove this once we bump dependencies to glib >= 2.31.0 */
-	if (!g_thread_supported ())
-		g_thread_init (NULL);
-#endif
-
         if (!ev_init ())
                 return -1;
 
@@ -329,15 +319,9 @@ main (int argc, char *argv[])
 		data.output = output;
 		data.size = size;
 
-#if (!GLIB_CHECK_VERSION(2,31,0))
-/* Remove this once we bump dependencies to glib >= 2.31.0 */
-		g_thread_create ((GThreadFunc) evince_thumbnail_pngenc_get_async,
-				 &data, FALSE, NULL);
-#else
-		g_thread_new ("EvThumbanilerAsyncRenderer",
+		g_thread_new ("ThmbnlrAsyncRndr",
 				(GThreadFunc) evince_thumbnail_pngenc_get_async,
 				&data);
-#endif
 		
 		gtk_main ();
 



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