summaryrefslogtreecommitdiff
path: root/thumbnailer/atril-thumbnailer.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-05-17 05:15:56 +0200
committerinfirit <[email protected]>2014-09-23 13:31:02 +0200
commit94dcb761b95ee54ef1f1512d59721932d75ffb7f (patch)
tree60f89e8174ffc3133c0f1758e2f43408b510c02b /thumbnailer/atril-thumbnailer.c
parent53bb92a83092a70170f85d75491c5b0b881455bc (diff)
downloadatril-94dcb761b95ee54ef1f1512d59721932d75ffb7f.tar.bz2
atril-94dcb761b95ee54ef1f1512d59721932d75ffb7f.tar.xz
Fix glib deprecations
Based on evince commit by Carlos Garcia Campos <[email protected]> Url: https://git.gnome.org/browse/evince/commit/?id=bf90f90e0af99bbfdd20e6d21fd228c05cffae51 Url: https://git.gnome.org/browse/evince/commit/?id=76151be92239ed5f491cb26c87a2328b670e9f64
Diffstat (limited to 'thumbnailer/atril-thumbnailer.c')
-rw-r--r--thumbnailer/atril-thumbnailer.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/thumbnailer/atril-thumbnailer.c b/thumbnailer/atril-thumbnailer.c
index e5c214a1..c3288595 100644
--- a/thumbnailer/atril-thumbnailer.c
+++ b/thumbnailer/atril-thumbnailer.c
@@ -83,7 +83,7 @@ static void
time_monitor_start (const char *input)
{
finished = FALSE;
- g_thread_create (time_monitor, (gpointer) input, FALSE, NULL);
+ g_thread_new ("EvThumbnailerTimer", time_monitor, (gpointer) input);
}
static void
@@ -293,11 +293,6 @@ main (int argc, char *argv[])
input = file_arguments[0];
output = file_arguments[1];
- g_type_init ();
-
- if (!g_thread_supported ())
- g_thread_init (NULL);
-
if (!ev_init ())
return -1;
@@ -328,8 +323,9 @@ main (int argc, char *argv[])
data.output = output;
data.size = size;
- g_thread_create ((GThreadFunc) atril_thumbnail_pngenc_get_async,
- &data, FALSE, NULL);
+ g_thread_new ("EvThumbnailerAsyncRenderer",
+ (GThreadFunc) atril_thumbnail_pngenc_get_async,
+ &data);
gtk_main ();