summaryrefslogtreecommitdiff
path: root/programs
diff options
context:
space:
mode:
authorWilliam Jon McCann <jmccann@redhat.com>2012-12-03 18:13:56 +0100
committerTomas Bzatek <tbzatek@redhat.com>2012-12-03 18:13:56 +0100
commitacca15e159475dc9dad837651e0e3118c3fd5f0f (patch)
treee070cac6f7f0eabdd47883bf570c6bba9a2bf9bf /programs
parentcf7f98995591f6c992467337469df41756c76b04 (diff)
downloadgvfs-acca15e159475dc9dad837651e0e3118c3fd5f0f.tar.gz
gvfs-info: Print out symbolic-icon too
https://bugzilla.gnome.org/show_bug.cgi?id=684328 Signed-off-by: Tomas Bzatek <tbzatek@redhat.com>
Diffstat (limited to 'programs')
-rw-r--r--programs/gvfs-info.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/programs/gvfs-info.c b/programs/gvfs-info.c
index 80852727..6fddc4ee 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))