From 6a524fb18460577397991644308890619abf248b Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 24 Sep 2017 21:19:57 -0400 Subject: MqWindow: Create and save root tab node --- diff --git a/src/window.c b/src/window.c index 3c05330..fcf2560 100644 --- a/src/window.c +++ b/src/window.c @@ -81,6 +81,8 @@ mq_window_new(MqApplication *application, gchar **uris) g_signal_connect(window->notebook, "page-reordered", G_CALLBACK(update_positions), window); + window->root_tab = mq_tab_new_root(); + if (uris && uris[0]) { for (i = 0; uris && uris[i]; ++i) { add_tab(application, window, uris[i], -1); diff --git a/src/window.h b/src/window.h index 6a7dab6..0356aa8 100644 --- a/src/window.h +++ b/src/window.h @@ -31,6 +31,7 @@ typedef struct MqWindow MqWindow; struct MqWindow { GtkWidget *window; GtkWidget *notebook; + MqTab *root_tab; }; MqWindow * -- cgit v0.9.1