Mercurial > geeqie
diff src/rcfile.c @ 1320:055ed09d5a03
improved bar_sort configuration
author | nadvornik |
---|---|
date | Tue, 24 Feb 2009 22:21:28 +0000 |
parents | cd7204a18f14 |
children | 50b325a2386e |
line wrap: on
line diff
--- a/src/rcfile.c Tue Feb 24 21:08:16 2009 +0000 +++ b/src/rcfile.c Tue Feb 24 22:21:28 2009 +0000 @@ -21,6 +21,7 @@ #include "bar_exif.h" #include "bar_histogram.h" #include "bar_keywords.h" +#include "bar_sort.h" #include "editors.h" #include "filefilter.h" #include "misc.h" @@ -881,6 +882,12 @@ layout_bar_set(lw, bar); options_parse_func_push(parser_data, options_parse_bar, NULL, lw->bar); } + else if (g_ascii_strcasecmp(element_name, "bar_sort") == 0) + { + GtkWidget *bar = bar_sort_new_from_config(lw, attribute_names, attribute_values); + layout_bar_sort_set(lw, bar); + options_parse_func_push(parser_data, options_parse_leaf, NULL, NULL); + } else { DEBUG_1("unexpected in <layout>: <%s>", element_name);