summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-25 00:19:32 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-25 00:19:32 (EDT)
commit7eac0a3b7776ca1746e216ccbdbbb936603bb1df (patch)
tree4161bbc9c94f6bf9c2ab5af5ced90f78b12dac29 /src
parent07556f315d414ec2c0c2d2a32cfe70dcb2715d98 (diff)
downloadmarquee-7eac0a3b7776ca1746e216ccbdbbb936603bb1df.zip
marquee-7eac0a3b7776ca1746e216ccbdbbb936603bb1df.tar.gz
marquee-7eac0a3b7776ca1746e216ccbdbbb936603bb1df.tar.bz2
mq_window_new(): Add tabs without adding to notebook
mq_window_insert_tab(), which adds a tab to the notebook, is now called by mq_tab_new() and mq_tab_new_relative().
Diffstat (limited to 'src')
-rw-r--r--src/window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index 1f16ed8..8f81660 100644
--- a/src/window.c
+++ b/src/window.c
@@ -84,10 +84,10 @@ mq_window_new(MqApplication *application, gchar **uris)
if (uris && uris[0]) {
for (i = 0; uris && uris[i]; ++i) {
- add_tab(application, window, uris[i], -1);
+ mq_tab_new_relative(window, uris[i], window->root_tab);
}
} else {
- add_tab(application, window, NULL, -1);
+ mq_tab_new_relative(window, NULL, window->root_tab);
}
gtk_widget_show_all(window->window);