Mercurial > geeqie
changeset 1457:5c0ecb2ebbc5
simplified code
author | nadvornik |
---|---|
date | Tue, 17 Mar 2009 19:09:34 +0000 |
parents | b24391991f7f |
children | dc406812db14 |
files | src/metadata.c |
diffstat | 1 files changed, 2 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/src/metadata.c Tue Mar 17 18:58:15 2009 +0000 +++ b/src/metadata.c Tue Mar 17 19:09:34 2009 +0000 @@ -1047,20 +1047,8 @@ while (TRUE) { - if (keyword_get_is_keyword(keyword_tree, &iter)) - { - if (keyword_tree_is_set(keyword_tree, &iter, kw_list)) return FALSE; - } - else - { - /* for helpers we have to check recursively */ - if (!keyword_tree_check_empty_children(keyword_tree, &iter, kw_list)) return FALSE; - } - - if (!gtk_tree_model_iter_next(keyword_tree, &iter)) - { - return TRUE; - } + if (keyword_tree_is_set(keyword_tree, &iter, kw_list)) return FALSE; + if (!gtk_tree_model_iter_next(keyword_tree, &iter)) return TRUE; } }