diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-17 20:08:59 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-17 20:08:59 (EDT) |
commit | d0c461f7c019c25dcd71edd7adff7c75cc6d07ef (patch) | |
tree | 4ae6648ef7f4202963b341d1caadac848b973e2c | |
parent | 1d1e550fb446da03d9f8389e41e159679170b0fe (diff) | |
download | marquee-d0c461f7c019c25dcd71edd7adff7c75cc6d07ef.zip marquee-d0c461f7c019c25dcd71edd7adff7c75cc6d07ef.tar.gz marquee-d0c461f7c019c25dcd71edd7adff7c75cc6d07ef.tar.bz2 |
mq_tab_root(), mq_tab_previous(), mq_tab_next(), mq_tab_first_child(): New functions
-rw-r--r-- | src/tab.c | 24 | ||||
-rw-r--r-- | src/tab.h | 12 |
2 files changed, 36 insertions, 0 deletions
@@ -292,6 +292,30 @@ mq_tab_foreach(MqTab *node, void (*cb)(MqTab *node, va_list ap), ...) va_end(ap); } +MqTab * +mq_tab_root(MqTab *node) +{ + return node ? node->root : NULL; +} + +MqTab * +mq_tab_previous(MqTab *node) +{ + return node ? node->prev : NULL; +} + +MqTab * +mq_tab_next(MqTab *node) +{ + return node ? node->next : NULL; +} + +MqTab * +mq_tab_first_child(MqTab *node) +{ + return node ? node->first_child : NULL; +} + void mq_tab_scroll_tab_labels(MqTab *node) { @@ -86,6 +86,18 @@ mq_tab_seek(MqTab *node, guint position); void mq_tab_foreach(MqTab *node, void (*cb)(MqTab *node, va_list ap), ...); +MqTab * +mq_tab_root(MqTab *node); + +MqTab * +mq_tab_previous(MqTab *node); + +MqTab * +mq_tab_next(MqTab *node); + +MqTab * +mq_tab_first_child(MqTab *node); + void mq_tab_scroll_tab_labels(MqTab *node); |