From e8949221f009dba47b596cce316bb7e287d03300 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 24 Sep 2017 13:15:57 -0400 Subject: mq_tab_new_root(): New function --- (limited to 'src') 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) { -- cgit v0.9.1