diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-24 21:19:57 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-24 21:19:57 (EDT) |
commit | 6a524fb18460577397991644308890619abf248b (patch) | |
tree | aae650fb8138bebff19c21c74891135b164f80dd | |
parent | 8726e5e4f0a06f475ade010efc3644ff4d419f07 (diff) | |
download | marquee-6a524fb18460577397991644308890619abf248b.zip marquee-6a524fb18460577397991644308890619abf248b.tar.gz marquee-6a524fb18460577397991644308890619abf248b.tar.bz2 |
MqWindow: Create and save root tab node
-rw-r--r-- | src/window.c | 2 | ||||
-rw-r--r-- | src/window.h | 1 |
2 files changed, 3 insertions, 0 deletions
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 * |