summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)
{