diff src/layout.c @ 132:661cd91e5a7e

First implementation of marks for all photos.
author bruclik
date Fri, 13 Jul 2007 14:03:08 +0000
parents 271afad04d07
children 71e1ebee420e
line wrap: on
line diff
--- a/src/layout.c	Thu Jul 12 20:46:28 2007 +0000
+++ b/src/layout.c	Fri Jul 13 14:03:08 2007 +0000
@@ -766,6 +766,11 @@
 	if (lw->vfl) vflist_thumb_set(lw->vfl, lw->thumbs_enabled);
 }
 
+static void layout_list_sync_marks(LayoutWindow *lw)
+{
+	if (lw->vfl) vflist_marks_set(lw->vfl, lw->marks_enabled);
+}
+
 static void layout_list_scroll_to_subpart(LayoutWindow *lw, const gchar *needle)
 {
 	if (!lw) return;
@@ -1042,6 +1047,19 @@
 	layout_list_sync_thumb(lw);
 }
 
+void layout_marks_set(LayoutWindow *lw, gint enable)
+{
+	if (!layout_valid(&lw)) return;
+
+	if (lw->marks_enabled == enable) return;
+
+	lw->marks_enabled = enable;
+
+    //	layout_util_sync_marks(lw);
+    layout_list_sync_marks(lw);
+    
+}
+
 gint layout_thumb_get(LayoutWindow *lw)
 {
 	if (!layout_valid(&lw)) return FALSE;