[gthumb] make sure an icon is returned
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] make sure an icon is returned
- Date: Thu, 3 Nov 2011 17:07:04 +0000 (UTC)
commit 3254133046cd60267b2ee3a2bd40a0f8187c15e3
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Nov 2 20:32:38 2011 +0100
make sure an icon is returned
gthumb/glib-utils.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/glib-utils.c b/gthumb/glib-utils.c
index d2cfcc8..19856ec 100644
--- a/gthumb/glib-utils.c
+++ b/gthumb/glib-utils.c
@@ -2026,7 +2026,8 @@ _g_file_get_icon (GFile *file)
NULL);
if (file_info != NULL)
icon = (GIcon*) g_file_info_get_attribute_object (file_info, G_FILE_ATTRIBUTE_STANDARD_ICON);
- else
+
+ if (icon == NULL)
icon = g_themed_icon_new ("file");
return icon;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]