summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-23 05:15:52 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-23 05:15:52 (EDT)
commit78eee39ac78ab72356ffd98ca000ed74bcd7ac4f (patch)
tree2bf4fe09545e717214c17aba901498633fcf5f6c
parenteea1cf3441ef435bd632bcd271ed11d304033cf9 (diff)
downloadmarquee-78eee39ac78ab72356ffd98ca000ed74bcd7ac4f.zip
marquee-78eee39ac78ab72356ffd98ca000ed74bcd7ac4f.tar.gz
marquee-78eee39ac78ab72356ffd98ca000ed74bcd7ac4f.tar.bz2
Mqwindow: Use mq_notebook_insert_sibling()
-rw-r--r--src/window.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index d88ab86..4629920 100644
--- a/src/window.c
+++ b/src/window.c
@@ -224,10 +224,16 @@ constructed(GObject *object)
if (window->uris && window->uris[0]) {
for (i = 0; window->uris && window->uris[i]; ++i) {
- mq_tab_page_new(window, window->uris[i]);
+ mq_notebook_insert_sibling(
+ MQ_NOTEBOOK(window->notebook),
+ window->uris[i],
+ NULL);
}
} else {
- mq_tab_page_new(window, NULL);
+ mq_notebook_insert_sibling(
+ MQ_NOTEBOOK(window->notebook),
+ NULL,
+ NULL);
}
gtk_widget_show_all(GTK_WIDGET(window));