# HG changeset patch # User nadvornik # Date 1214128886 0 # Node ID 6e521e987105b5ba4ba1de3271b4fbf50816c48f # Parent ff937cdfaee9f63d1fd2ada59d01602201ab5398 show sidecars in icon view diff -r ff937cdfaee9 -r 6e521e987105 src/view_file_icon.c --- a/src/view_file_icon.c Sun Jun 22 09:40:57 2008 +0000 +++ b/src/view_file_icon.c Sun Jun 22 10:01:26 2008 +0000 @@ -2263,13 +2263,27 @@ { if (id) { + gchar *name_sidecars = (gchar *)id->fd->name; + gchar *sidecars = NULL; + + if (id->fd->sidecar_files) + { + sidecars = file_data_sc_list_to_string(id->fd); + name_sidecars = g_strdup_printf("%s %s", id->fd->name, sidecars); + } + g_object_set(cell, "pixbuf", id->fd->thumb_pixbuf, - "text", id->fd->name, + "text", name_sidecars, "cell-background-gdk", &color_bg, "cell-background-set", TRUE, "foreground-gdk", &color_fg, "foreground-set", TRUE, "has-focus", (VFICON_INFO(vf, focus_id) == id), NULL); + if (sidecars) + { + g_free(sidecars); + g_free(name_sidecars); + } } else {