summaryrefslogtreecommitdiff
path: root/programs
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2008-10-24 10:27:08 +0000
committerAlexander Larsson <alexl@src.gnome.org>2008-10-24 10:27:08 +0000
commit7acfd7be46e59998c1771b907f2b86b444d913c0 (patch)
treec3b5c555f7c51e6b47cd3a0b23a5d36c6634fa31 /programs
parent070e77e5fa2f40598bd6bc67df2aa3ed63d6caae (diff)
downloadgvfs-7acfd7be46e59998c1771b907f2b86b444d913c0.tar.gz
Don't show fallback setting for GThemedIcon (this is a construct only
2008-10-24 Alexander Larsson <alexl@redhat.com> * programs/gvfs-info.c (show_attributes): Don't show fallback setting for GThemedIcon (this is a construct only property). List icons on same line. svn path=/trunk/; revision=2076
Diffstat (limited to 'programs')
-rw-r--r--programs/gvfs-info.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/programs/gvfs-info.c b/programs/gvfs-info.c
index 9f75ef1c..b3d6e0e1 100644
--- a/programs/gvfs-info.c
+++ b/programs/gvfs-info.c
@@ -113,24 +113,18 @@ show_attributes (GFileInfo *info)
if (strcmp (attributes[i], "standard::icon") == 0)
{
GIcon *icon;
- gboolean fallbacks;
- int j, len;
- char **names = NULL;
+ int j;
+ const char * const *names = NULL;
icon = g_file_info_get_icon (info);
/* only look up names if GThemedIcon */
if (G_IS_THEMED_ICON(icon))
{
- g_object_get (G_OBJECT(icon), "names", &names,
- "use-default-fallbacks", &fallbacks, NULL);
- g_print (" %s: (fallbacks: %s)\n", attributes[i],
- fallbacks ? "TRUE" : "FALSE");
- len = g_strv_length (names);
- for (j = 0; j < len; j++)
- {
- g_print (" %i. name:%s\n", j+1, names[j]);
- }
- g_strfreev (names);
+ names = g_themed_icon_get_names (G_THEMED_ICON (icon));
+ g_print (" %s: ", attributes[i]);
+ for (j = 0; names[j] != NULL; j++)
+ g_print ("%s%s", names[j], (names[j+1] == NULL)?"":", ");
+ g_print ("\n");
}
else
{