diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-17 20:14:36 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-17 20:14:36 (EDT) |
commit | 93f6601999c331c357b275f947494299c6617d5b (patch) | |
tree | f000a5f001b6487c40c78cf32db91802dcd27ee1 /src | |
parent | d0c461f7c019c25dcd71edd7adff7c75cc6d07ef (diff) | |
download | marquee-93f6601999c331c357b275f947494299c6617d5b.zip marquee-93f6601999c331c357b275f947494299c6617d5b.tar.gz marquee-93f6601999c331c357b275f947494299c6617d5b.tar.bz2 |
MqTabLabel: Use mq_tab_next(), etc.
Diffstat (limited to 'src')
-rw-r--r-- | src/tab-label.c | 6 |
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); |