summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tab.c5
-rw-r--r--src/tab.h6
2 files changed, 11 insertions, 0 deletions
diff --git a/src/tab.c b/src/tab.c
index 3d8f159..9d17212 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -234,6 +234,11 @@ mq_tab_new(MqApplication *application, gchar *uri)
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;
tab->application = application;
mq_tab_populate_tab(tab);
diff --git a/src/tab.h b/src/tab.h
index 3166fb9..1036dbe 100644
--- a/src/tab.h
+++ b/src/tab.h
@@ -31,6 +31,12 @@ typedef struct MqTab MqTab;
#include "tab-body.h"
struct MqTab {
+ MqTab *parent;
+ MqTab *prev;
+ MqTab *next;
+ MqTab *first_child;
+ MqTab *last_child;
+ guint tree_size;
MqApplication *application;
GtkWidget *container;
MqTabChrome *chrome;