[gthumb] set the error if no script is available
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] set the error if no script is available
- Date: Fri, 30 Apr 2010 21:07:37 +0000 (UTC)
commit ae34efcde898fd849db692cf5fb8fe3d2e4657e0
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Apr 30 23:05:46 2010 +0200
set the error if no script is available
gthumb/gnome-desktop-thumbnail.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/gnome-desktop-thumbnail.c b/gthumb/gnome-desktop-thumbnail.c
index d43ac15..a8544ee 100644
--- a/gthumb/gnome-desktop-thumbnail.c
+++ b/gthumb/gnome-desktop-thumbnail.c
@@ -832,8 +832,10 @@ gnome_desktop_thumbnail_factory_generate_from_script (GnomeDesktopThumbnailFacto
}
g_mutex_unlock (factory->priv->lock);
- if (script == NULL)
+ if (script == NULL) {
+ *error = g_error_new_literal (G_IO_ERROR, G_IO_ERROR_FAILED, "No script");
return FALSE;
+ }
fd = g_file_open_tmp (".gnome_desktop_thumbnail.XXXXXX", tmpname, error);
if (fd == -1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]