diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-24 13:15:57 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-24 13:15:57 (EDT) |
commit | e8949221f009dba47b596cce316bb7e287d03300 (patch) | |
tree | ccfe8fa5b106dffa260f01d6f0477db20236346d | |
parent | 8ec488c38818d6159f88ddf27a71212a69cb926c (diff) | |
download | marquee-e8949221f009dba47b596cce316bb7e287d03300.zip marquee-e8949221f009dba47b596cce316bb7e287d03300.tar.gz marquee-e8949221f009dba47b596cce316bb7e287d03300.tar.bz2 |
mq_tab_new_root(): New function
-rw-r--r-- | src/tab.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -261,6 +261,21 @@ mq_tab_new(MqApplication *application, gchar *uri) return tab; } +MqTab * +mq_tab_new_root(void) +{ + MqTab *tab; + + tab = malloc(sizeof(*tab)); + tab->parent = NULL; + tab->prev = NULL; + tab->next = NULL; + tab->first_child = tab->last_child = NULL; + tab->tree_size = 1; + + return tab; +} + GtkWidget * mq_tab_get_tab(MqTab *tab) { |