diff src/view_file_icon.c @ 852:8308d3606991

show marks in iconview
author nadvornik
date Sun, 22 Jun 2008 20:01:20 +0000
parents 6e521e987105
children 1698baa37871
line wrap: on
line diff
--- a/src/view_file_icon.c	Sun Jun 22 10:01:26 2008 +0000
+++ b/src/view_file_icon.c	Sun Jun 22 20:01:20 2008 +0000
@@ -617,6 +617,11 @@
 	vficon_selection_set(vf, id, id->selected & ~mask, iter);
 }
 
+void vficon_marks_set(ViewFile *vf, gint enable)
+{
+	vficon_populate_at_new_size(vf, vf->listview->allocation.width, vf->listview->allocation.height, TRUE);
+}
+
 /*
  *-------------------------------------------------------------------
  * selections
@@ -1572,7 +1577,10 @@
 				{
 				g_object_set(G_OBJECT(cell), "fixed_width", thumb_width,
 							     "fixed_height", options->thumbnails.max_height,
-							     "show_text", VFICON_INFO(vf, show_text), NULL);
+							     "show_text", VFICON_INFO(vf, show_text),
+							     "show_marks", vf->marks_enabled,
+							     "num_marks", FILEDATA_MARKS_SIZE,
+							     NULL);
 				}
 			}
 		if (GTK_WIDGET_REALIZED(vf->listview)) gtk_tree_view_columns_autosize(GTK_TREE_VIEW(vf->listview));
@@ -2274,6 +2282,8 @@
 
 			g_object_set(cell,	"pixbuf", id->fd->thumb_pixbuf,
 						"text", name_sidecars,
+						"marks", id->fd->marks,
+						"show_marks", vf->marks_enabled,
 						"cell-background-gdk", &color_bg,
 						"cell-background-set", TRUE,
 						"foreground-gdk", &color_fg,
@@ -2289,6 +2299,7 @@
 			{
 			g_object_set(cell,	"pixbuf", NULL,
 						"text", NULL,
+						"show_marks", FALSE,
 						"cell-background-set", FALSE,
 						"foreground-set", FALSE,
 						"has-focus", FALSE, NULL);