Mercurial > geeqie
diff src/layout.c @ 433:5ddcf93278c7
Save Show Marks state to rc file and display current state in menu.
It is saved as boolean option layout.show_marks.
author | zas_ |
---|---|
date | Sat, 19 Apr 2008 21:30:19 +0000 |
parents | 96f8389c36de |
children | 4b2d7f9af171 |
line wrap: on
line diff
--- a/src/layout.c Sat Apr 19 21:20:08 2008 +0000 +++ b/src/layout.c Sat Apr 19 21:30:19 2008 +0000 @@ -1090,6 +1090,13 @@ return lw->thumbs_enabled; } +gint layout_marks_get(LayoutWindow *lw) +{ + if (!layout_valid(&lw)) return FALSE; + + return lw->marks_enabled; +} + void layout_sort_set(LayoutWindow *lw, SortType type, gint ascend) { if (!layout_valid(&lw)) return; @@ -1881,6 +1888,7 @@ lw = g_new0(LayoutWindow, 1); lw->thumbs_enabled = options->layout.show_thumbnails; + lw->marks_enabled = options->layout.show_marks; lw->sort_method = SORT_NAME; lw->sort_ascend = TRUE;