Mercurial > geeqie.yaz
changeset 851:6e521e987105
show sidecars in icon view
author | nadvornik |
---|---|
date | Sun, 22 Jun 2008 10:01:26 +0000 |
parents | ff937cdfaee9 |
children | 8308d3606991 |
files | src/view_file_icon.c |
diffstat | 1 files changed, 15 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 {