comparison src/metadata.c @ 1595:9e2111452988

fixed keyword tree initialization
author nadvornik
date Thu, 07 May 2009 19:52:38 +0000
parents 69abb57139f0
children 7de9a6897060
comparison
equal deleted inserted replaced
1594:3fbec0e63e6b 1595:9e2111452988
1331 return iter; 1331 return iter;
1332 } 1332 }
1333 1333
1334 void keyword_tree_new_default(void) 1334 void keyword_tree_new_default(void)
1335 { 1335 {
1336 if (keyword_tree) return;
1337
1338 keyword_tree_new();
1339
1340 GtkTreeIter i1, i2, i3; 1336 GtkTreeIter i1, i2, i3;
1337
1338 if (!keyword_tree) keyword_tree_new();
1341 1339
1342 i1 = keyword_tree_default_append(keyword_tree, NULL, _("People"), TRUE); 1340 i1 = keyword_tree_default_append(keyword_tree, NULL, _("People"), TRUE);
1343 i2 = keyword_tree_default_append(keyword_tree, &i1, _("Family"), TRUE); 1341 i2 = keyword_tree_default_append(keyword_tree, &i1, _("Family"), TRUE);
1344 i2 = keyword_tree_default_append(keyword_tree, &i1, _("Free time"), TRUE); 1342 i2 = keyword_tree_default_append(keyword_tree, &i1, _("Free time"), TRUE);
1345 i2 = keyword_tree_default_append(keyword_tree, &i1, _("Children"), TRUE); 1343 i2 = keyword_tree_default_append(keyword_tree, &i1, _("Children"), TRUE);