fix more breakage due to recent changes in theme-info (bug #531284)

2008-05-04  Jens Granseuer  <jensgr@gmx.net>

	* theme-thumbnailer.c: (main): fix more breakage due to recent
	changes in theme-info (bug #531284)

svn path=/trunk/; revision=8688
This commit is contained in:
Jens Granseuer 2008-05-04 10:55:39 +00:00 committed by Jens Granseuer
parent cc954b5493
commit 225e397072
2 changed files with 11 additions and 9 deletions

View file

@ -1,3 +1,8 @@
2008-05-04 Jens Granseuer <jensgr@gmx.net>
* theme-thumbnailer.c: (main): fix more breakage due to recent
changes in theme-info (bug #531284)
2008-05-01 Jens Granseuer <jensgr@gmx.net>
* theme-method.c: (vfs_module_init):

View file

@ -17,6 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <gio/gio.h>
#include <gdk/gdk.h>
#include <gnome-theme-info.h>
#include <theme-thumbnail.h>
@ -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);