Skip to content

Commit

Permalink
show sidecars in icon view
Browse files Browse the repository at this point in the history
  • Loading branch information
nadvornik committed Jun 22, 2008
1 parent 5a236ea commit 975fc4e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/view_file_icon.c
Original file line number Diff line number Diff line change
Expand Up @@ -2263,13 +2263,27 @@ static void vficon_cell_data_cb(GtkTreeViewColumn *tree_column, GtkCellRenderer
{
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
{
Expand Down

0 comments on commit 975fc4e

Please sign in to comment.