handle failed thumbnailing attempts properly
2008-03-11 Jens Granseuer <jensgr@gmx.net> * theme-thumbnailer.c: (main): handle failed thumbnailing attempts properly svn path=/trunk/; revision=8575
This commit is contained in:
parent
d3b988bc36
commit
daa1c4b876
2 changed files with 14 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2008-03-11 Jens Granseuer <jensgr@gmx.net>
|
||||||
|
|
||||||
|
* theme-thumbnailer.c: (main): handle failed thumbnailing attempts
|
||||||
|
properly
|
||||||
|
|
||||||
2008-01-29 Jens Granseuer <jensgr@gmx.net>
|
2008-01-29 Jens Granseuer <jensgr@gmx.net>
|
||||||
|
|
||||||
* themus-properties-view.c: (add_atk_relation): don't leak the ATK
|
* themus-properties-view.c: (add_atk_relation): don't leak the ATK
|
||||||
|
|
|
@ -143,8 +143,15 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
if (theme) {
|
if (theme) {
|
||||||
pixbuf = generate_meta_theme_thumbnail (theme);
|
pixbuf = generate_meta_theme_thumbnail (theme);
|
||||||
save_pixbuf (pixbuf, argv[2]);
|
gnome_theme_meta_info_free (theme);
|
||||||
gdk_pixbuf_unref (pixbuf);
|
|
||||||
|
if (pixbuf) {
|
||||||
|
save_pixbuf (pixbuf, argv[2]);
|
||||||
|
gdk_pixbuf_unref (pixbuf);
|
||||||
|
} else {
|
||||||
|
g_printerr ("could not generate thumbnail\n");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
g_printerr ("usage: gnome-theme-thumbnailer theme output-image\n");
|
g_printerr ("usage: gnome-theme-thumbnailer theme output-image\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue