Patch by: Jens Granseuer <jensgr@gmx.net>
2007-01-07 Thomas Wood <thos@gnome.org> Patch by: Jens Granseuer <jensgr@gmx.net> * gnome-wp-capplet.c: (gnome_wp_update_preview): Fixes bug 388616 (Control center crashes when changing the image name) svn path=/trunk/; revision=7085
This commit is contained in:
parent
239be66ce1
commit
9f505d83cc
2 changed files with 14 additions and 2 deletions
|
@ -1,10 +1,20 @@
|
|||
2007-01-07 Thomas Wood <thos@gnome.org>
|
||||
|
||||
Patch by: Jens Granseuer <jensgr@gmx.net>
|
||||
|
||||
* gnome-wp-capplet.c: (gnome_wp_update_preview): Fixes bug 388616
|
||||
(Control center crashes when changing the image name)
|
||||
|
||||
2007-01-07 Thomas Wood <thos@gnome.org>
|
||||
|
||||
Patch by: Jens Granseuer <jensgr@gmx.net>
|
||||
|
||||
* gnome-wp-item.c: (gnome_wp_item_get_thumbnail):
|
||||
* gnome-wp-xml.c: (gnome_wp_xml_load_list):
|
||||
|
||||
Apply patch from bug 335220 (mem leaks in gnome-wp-item)
|
||||
|
||||
|
||||
2007-01-06 Lucas Rocha <lucasr.at.mundo@gmail.com>
|
||||
|
||||
Fixes #336286
|
||||
|
|
|
@ -820,13 +820,15 @@ static void gnome_wp_update_preview (GtkFileChooser *chooser,
|
|||
uri = gtk_file_chooser_get_preview_uri (chooser);
|
||||
|
||||
if (uri) {
|
||||
GdkPixbuf *pixbuf;
|
||||
GdkPixbuf *pixbuf = NULL;
|
||||
gchar *mime_type;
|
||||
|
||||
mime_type = gnome_vfs_get_mime_type (uri);
|
||||
pixbuf = gnome_thumbnail_factory_generate_thumbnail (capplet->thumbs,
|
||||
if (mime_type) {
|
||||
pixbuf = gnome_thumbnail_factory_generate_thumbnail (capplet->thumbs,
|
||||
uri,
|
||||
mime_type);
|
||||
}
|
||||
|
||||
if(pixbuf != NULL) {
|
||||
gtk_image_set_from_pixbuf (GTK_IMAGE (capplet->image), pixbuf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue