use thumbnail factory to store and retrieve metatheme thumbs (bug #448968)

2007-08-03  Jens Granseuer  <jensgr@gmx.net>

	* appearance-desktop.c: (wp_props_load_wallpaper), (wp_add_image),
	(wp_scale_type_changed), (wp_shade_type_changed),
	(wp_update_preview), (wp_load_stuffs), (desktop_init),
	(desktop_shutdown):
	* appearance-main.c: (init_appearance_data),
	(main_window_response):
	* appearance-themes.c: (theme_get_mtime), (theme_thumbnail_update),
	(theme_get_thumbnail_from_cache), (theme_thumbnail_done_cb),
	(theme_thumbnail_generate):
	* appearance.h:
	* gnome-wp-xml.c: (gnome_wp_load_legacy), (gnome_wp_xml_load_xml):
	use thumbnail factory to store and retrieve metatheme thumbs
	(bug #448968)

svn path=/trunk/; revision=7955
This commit is contained in:
Jens Granseuer 2007-08-03 19:53:14 +00:00 committed by Jens Granseuer
parent aa9ddd3739
commit b7ad0952dc
6 changed files with 130 additions and 26 deletions

View file

@ -33,6 +33,7 @@
#include <libgnome/libgnome.h>
#include <libgnomeui/gnome-ui-init.h>
/* ---------------------------------- */
#include <libgnomeui/gnome-thumbnail.h>
static AppearanceData *
init_appearance_data (int *argc, char ***argv)
@ -60,6 +61,7 @@ init_appearance_data (int *argc, char ***argv)
data = g_new (AppearanceData, 1);
data->client = gconf_client_get_default ();
data->xml = ui;
data->thumb_factory = gnome_thumbnail_factory_new (GNOME_THUMBNAIL_SIZE_NORMAL);
}
return data;
@ -80,6 +82,7 @@ main_window_response (GtkWidget *widget,
desktop_shutdown (data);
font_shutdown (data);
g_object_unref (data->thumb_factory);
g_object_unref (data->client);
g_object_unref (data->xml);
}