gnome-control-center r8688 - trunk/vfs-methods/themus
- From: jensg svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-control-center r8688 - trunk/vfs-methods/themus
- Date: Sun, 4 May 2008 11:55:39 +0100 (BST)
Author: jensg
Date: Sun May 4 10:55:39 2008
New Revision: 8688
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=8688&view=rev
Log:
2008-05-04 Jens Granseuer <jensgr gmx net>
* theme-thumbnailer.c: (main): fix more breakage due to recent
changes in theme-info (bug #531284)
Modified:
trunk/vfs-methods/themus/ChangeLog
trunk/vfs-methods/themus/theme-thumbnailer.c
Modified: trunk/vfs-methods/themus/theme-thumbnailer.c
==============================================================================
--- trunk/vfs-methods/themus/theme-thumbnailer.c (original)
+++ trunk/vfs-methods/themus/theme-thumbnailer.c Sun May 4 10:55:39 2008
@@ -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 @@
{
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 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]