From 225e3970720f10eaca5c780a110fa47c638f45d5 Mon Sep 17 00:00:00 2001 From: Jens Granseuer Date: Sun, 4 May 2008 10:55:39 +0000 Subject: [PATCH] fix more breakage due to recent changes in theme-info (bug #531284) 2008-05-04 Jens Granseuer * theme-thumbnailer.c: (main): fix more breakage due to recent changes in theme-info (bug #531284) svn path=/trunk/; revision=8688 --- vfs-methods/themus/ChangeLog | 5 +++++ vfs-methods/themus/theme-thumbnailer.c | 15 ++++++--------- 2 files changed, 11 insertions(+), 9 deletions(-) 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);