From 118a8090ba1b11d1ea2f638dc275929314fbb01a Mon Sep 17 00:00:00 2001 From: Jens Granseuer Date: Thu, 5 Jul 2007 19:44:02 +0000 Subject: [PATCH] call g_thread_init 2007-07-05 Jens Granseuer * theme-thumbnailer.c: (main): call g_thread_init svn path=/trunk/; revision=7828 --- vfs-methods/themus/ChangeLog | 5 ++++- vfs-methods/themus/theme-thumbnailer.c | 15 ++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/vfs-methods/themus/ChangeLog b/vfs-methods/themus/ChangeLog index 148c92b6a..2d9f34388 100644 --- a/vfs-methods/themus/ChangeLog +++ b/vfs-methods/themus/ChangeLog @@ -1,9 +1,12 @@ +2007-07-05 Jens Granseuer + + * theme-thumbnailer.c: (main): call g_thread_init + 2007-06-06 Denis Washington * theme-thumbnailer.c: (main): Update for changes in thumbnailer API. - 2007-06-06 Jens Granseuer * theme-thumbnailer.c: (main): update for changes in thumbnailer API diff --git a/vfs-methods/themus/theme-thumbnailer.c b/vfs-methods/themus/theme-thumbnailer.c index 353e673e7..49df38a22 100644 --- a/vfs-methods/themus/theme-thumbnailer.c +++ b/vfs-methods/themus/theme-thumbnailer.c @@ -124,29 +124,30 @@ main(int argc, char **argv) GnomeThemeMetaInfo *theme; GnomeVFSURI *uri; + g_thread_init (NULL); theme_thumbnail_factory_init (argc, argv); if (argc != 3) { - g_printerr("usage: gnome-theme-thumbnailer theme output-image\n"); + g_printerr ("usage: gnome-theme-thumbnailer theme output-image\n"); return 1; } - if (!gnome_vfs_init()) { - g_printerr("could not initialise gnome-vfs\n"); + if (!gnome_vfs_init ()) { + g_printerr ("could not initialise gnome-vfs\n"); return 1; } - + uri = gnome_vfs_uri_new (argv[1]); theme = gnome_theme_read_meta_theme (uri); gnome_vfs_uri_unref (uri); if (theme) { pixbuf = generate_meta_theme_thumbnail (theme); - save_pixbuf(pixbuf, argv[2]); - gdk_pixbuf_unref(pixbuf); + save_pixbuf (pixbuf, argv[2]); + gdk_pixbuf_unref (pixbuf); } else { - g_printerr("usage: gnome-theme-thumbnailer theme output-image\n"); + g_printerr ("usage: gnome-theme-thumbnailer theme output-image\n"); return 1; }