diff options
Diffstat (limited to 'src')
-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) { |