From 93f6601999c331c357b275f947494299c6617d5b Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 17 Oct 2017 20:14:36 -0400 Subject: MqTabLabel: Use mq_tab_next(), etc. --- (limited to 'src') 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); -- cgit v0.9.1