summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-27 00:59:47 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-27 00:59:47 (EDT)
commitb1f56c59e3619ae32565fff79b2c33adb3dd8332 (patch)
treed9d59e5fc7c7e6f4c3d05db60b1e4297ee474aba /src
parent6f0dd2492c8399b8c6126c531e7416f1e7c2f0ce (diff)
downloadmarquee-b1f56c59e3619ae32565fff79b2c33adb3dd8332.zip
marquee-b1f56c59e3619ae32565fff79b2c33adb3dd8332.tar.gz
marquee-b1f56c59e3619ae32565fff79b2c33adb3dd8332.tar.bz2
mq_tab_new_root(): Accept and save MqWindow argument
Diffstat (limited to 'src')
-rw-r--r--src/tab.c3
-rw-r--r--src/tab.h2
-rw-r--r--src/window.c2
3 files changed, 4 insertions, 3 deletions
diff --git a/src/tab.c b/src/tab.c
index 30d975b..c11ff1b 100644
--- a/src/tab.c
+++ b/src/tab.c
@@ -359,7 +359,7 @@ mq_tab_new_relative(MqWindow *window, gchar *uri, MqTab *source)
}
MqTab *
-mq_tab_new_root(void)
+mq_tab_new_root(MqWindow *window)
{
MqTab *tab;
@@ -370,6 +370,7 @@ mq_tab_new_root(void)
tab->first_child = tab->last_child = NULL;
tab->position = 0;
tab->tree_size = 1;
+ tab->window = window;
return tab;
}
diff --git a/src/tab.h b/src/tab.h
index b016d83..ce27d73 100644
--- a/src/tab.h
+++ b/src/tab.h
@@ -60,7 +60,7 @@ MqTab *
mq_tab_new_relative(MqWindow *window, gchar *uri, MqTab *source);
MqTab *
-mq_tab_new_root(void);
+mq_tab_new_root(MqWindow *window);
void
mq_tab_update_position(MqTab *tab, guint position);
diff --git a/src/window.c b/src/window.c
index 35014ea..2cfbed1 100644
--- a/src/window.c
+++ b/src/window.c
@@ -63,7 +63,7 @@ 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();
+ window->root_tab = mq_tab_new_root(window);
if (uris && uris[0]) {
for (i = 0; uris && uris[i]; ++i) {