summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-24 13:15:57 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-24 13:15:57 (EDT)
commite8949221f009dba47b596cce316bb7e287d03300 (patch)
treeccfe8fa5b106dffa260f01d6f0477db20236346d
parent8ec488c38818d6159f88ddf27a71212a69cb926c (diff)
downloadmarquee-e8949221f009dba47b596cce316bb7e287d03300.zip
marquee-e8949221f009dba47b596cce316bb7e287d03300.tar.gz
marquee-e8949221f009dba47b596cce316bb7e287d03300.tar.bz2
mq_tab_new_root(): New function
-rw-r--r--src/tab.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tab.c b/src/tab.c
index 9d17212..9d0ad94 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -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)
{