Mercurial > geeqie
comparison 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 |
comparison
equal
deleted
inserted
replaced
432:96f8389c36de | 433:5ddcf93278c7 |
---|---|
1088 if (!layout_valid(&lw)) return FALSE; | 1088 if (!layout_valid(&lw)) return FALSE; |
1089 | 1089 |
1090 return lw->thumbs_enabled; | 1090 return lw->thumbs_enabled; |
1091 } | 1091 } |
1092 | 1092 |
1093 gint layout_marks_get(LayoutWindow *lw) | |
1094 { | |
1095 if (!layout_valid(&lw)) return FALSE; | |
1096 | |
1097 return lw->marks_enabled; | |
1098 } | |
1099 | |
1093 void layout_sort_set(LayoutWindow *lw, SortType type, gint ascend) | 1100 void layout_sort_set(LayoutWindow *lw, SortType type, gint ascend) |
1094 { | 1101 { |
1095 if (!layout_valid(&lw)) return; | 1102 if (!layout_valid(&lw)) return; |
1096 if (lw->sort_method == type && lw->sort_ascend == ascend) return; | 1103 if (lw->sort_method == type && lw->sort_ascend == ascend) return; |
1097 | 1104 |
1879 GdkWindowHints hint_mask; | 1886 GdkWindowHints hint_mask; |
1880 | 1887 |
1881 lw = g_new0(LayoutWindow, 1); | 1888 lw = g_new0(LayoutWindow, 1); |
1882 | 1889 |
1883 lw->thumbs_enabled = options->layout.show_thumbnails; | 1890 lw->thumbs_enabled = options->layout.show_thumbnails; |
1891 lw->marks_enabled = options->layout.show_marks; | |
1884 lw->sort_method = SORT_NAME; | 1892 lw->sort_method = SORT_NAME; |
1885 lw->sort_ascend = TRUE; | 1893 lw->sort_ascend = TRUE; |
1886 | 1894 |
1887 lw->tools_float = popped; | 1895 lw->tools_float = popped; |
1888 lw->tools_hidden = hidden; | 1896 lw->tools_hidden = hidden; |