[gvfs] gvfs-info: Print out symbolic-icon too
- From: Tomas Bzatek <tbzatek src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] gvfs-info: Print out symbolic-icon too
- Date: Mon, 3 Dec 2012 17:15:38 +0000 (UTC)
commit acca15e159475dc9dad837651e0e3118c3fd5f0f
Author: William Jon McCann <jmccann redhat com>
Date: Mon Dec 3 18:13:56 2012 +0100
gvfs-info: Print out symbolic-icon too
https://bugzilla.gnome.org/show_bug.cgi?id=684328
Signed-off-by: Tomas Bzatek <tbzatek redhat com>
programs/gvfs-info.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/programs/gvfs-info.c b/programs/gvfs-info.c
index 8085272..6fddc4e 100644
--- a/programs/gvfs-info.c
+++ b/programs/gvfs-info.c
@@ -110,12 +110,17 @@ show_attributes (GFileInfo *info)
for (i = 0; attributes[i] != NULL; i++)
{
/* list the icons in order rather than displaying "GThemedIcon:0x8df7200" */
- if (strcmp (attributes[i], "standard::icon") == 0)
+ if (strcmp (attributes[i], "standard::icon") == 0 ||
+ strcmp (attributes[i], "standard::symbolic-icon") == 0)
{
GIcon *icon;
int j;
const char * const *names = NULL;
- icon = g_file_info_get_icon (info);
+
+ if (strcmp (attributes[i], "standard::symbolic-icon") == 0)
+ icon = g_file_info_get_symbolic_icon (info);
+ else
+ icon = g_file_info_get_icon (info);
/* only look up names if GThemedIcon */
if (G_IS_THEMED_ICON(icon))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]