call g_thread_init

2007-07-05  Jens Granseuer  <jensgr@gmx.net>

	* theme-thumbnailer.c: (main): call g_thread_init

svn path=/trunk/; revision=7828
This commit is contained in:
Jens Granseuer 2007-07-05 19:44:02 +00:00 committed by Jens Granseuer
parent e146c38627
commit 118a8090ba
2 changed files with 12 additions and 8 deletions

View file

@ -1,9 +1,12 @@
2007-07-05 Jens Granseuer <jensgr@gmx.net>
* theme-thumbnailer.c: (main): call g_thread_init
2007-06-06 Denis Washington <denisw@svn.gnome.org>
* theme-thumbnailer.c: (main):
Update for changes in thumbnailer API.
2007-06-06 Jens Granseuer <jensgr@gmx.net>
* theme-thumbnailer.c: (main): update for changes in thumbnailer API

View file

@ -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;
}