gvfs r2076 - in trunk: . programs
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r2076 - in trunk: . programs
- Date: Fri, 24 Oct 2008 10:27:08 +0000 (UTC)
Author: alexl
Date: Fri Oct 24 10:27:08 2008
New Revision: 2076
URL: http://svn.gnome.org/viewvc/gvfs?rev=2076&view=rev
Log:
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.
Modified:
trunk/ChangeLog
trunk/programs/gvfs-info.c
Modified: trunk/programs/gvfs-info.c
==============================================================================
--- trunk/programs/gvfs-info.c (original)
+++ trunk/programs/gvfs-info.c Fri Oct 24 10:27:08 2008
@@ -113,24 +113,18 @@
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
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]