diff --git a/vfs-methods/themus/ChangeLog b/vfs-methods/themus/ChangeLog index d5b291f0b..68b9f4fa4 100644 --- a/vfs-methods/themus/ChangeLog +++ b/vfs-methods/themus/ChangeLog @@ -1,3 +1,8 @@ +2008-05-04 Jens Granseuer + + * theme-thumbnailer.c: (main): fix more breakage due to recent + changes in theme-info (bug #531284) + 2008-05-01 Jens Granseuer * theme-method.c: (vfs_module_init): diff --git a/vfs-methods/themus/theme-thumbnailer.c b/vfs-methods/themus/theme-thumbnailer.c index ecff91f3a..7a9eccd05 100644 --- a/vfs-methods/themus/theme-thumbnailer.c +++ b/vfs-methods/themus/theme-thumbnailer.c @@ -17,6 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include #include #include #include @@ -122,8 +123,9 @@ main(int argc, char **argv) { GdkPixbuf *pixbuf; GnomeThemeMetaInfo *theme; - GnomeVFSURI *uri; + GFile *file; + g_type_init (); g_thread_init (NULL); theme_thumbnail_factory_init (argc, argv); @@ -132,14 +134,9 @@ main(int argc, char **argv) return 1; } - 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); + file = g_file_new_for_commandline_arg (argv[1]); + theme = gnome_theme_read_meta_theme (file); + g_object_unref (file); if (theme) { pixbuf = generate_meta_theme_thumbnail (theme);