summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tab-label.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tab-label.c b/src/tab-label.c
index 549a10e..b4c4d7b 100644
--- a/src/tab-label.c
+++ b/src/tab-label.c
@@ -93,10 +93,10 @@ create_tree_model_recurse(MqTab *node, GtkTreeStore *tree_store,
{
GtkTreeIter tree_iter;
- for (; node; node = node->next) {
+ for (; node; node = mq_tab_next(node)) {
gtk_tree_store_append(tree_store, &tree_iter, parent_tree_iter);
gtk_tree_store_set(tree_store, &tree_iter, 0, node->title, -1);
- create_tree_model_recurse(node->first_child, tree_store,
+ create_tree_model_recurse(mq_tab_first_child(node), tree_store,
&tree_iter);
}
}
@@ -108,7 +108,7 @@ create_tree_model(MqTabLabel *tab_label)
tree_store = gtk_tree_store_new(1, G_TYPE_STRING);
- create_tree_model_recurse(tab_label->tab_page->root->first_child,
+ create_tree_model_recurse(mq_tab_root(tab_label->tab_page),
tree_store, NULL);
return GTK_TREE_MODEL(tree_store);