summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/window.c b/src/window.c
index c6da452..a4fc61d 100644
--- a/src/window.c
+++ b/src/window.c
@@ -208,8 +208,9 @@ update_positions(GtkNotebook G_GNUC_UNUSED *notebook,
static void
constructed(GObject *object)
{
- MqWindow *window;
- gsize i;
+ MqWindow *window;
+ MqTabPage *sibling;
+ gsize i;
window = MQ_WINDOW(object);
@@ -223,11 +224,12 @@ constructed(GObject *object)
mq_config_get_integer(window->config, "window.height"));
if (window->uris && window->uris[0]) {
+ sibling = NULL;
for (i = 0; window->uris && window->uris[i]; ++i) {
- mq_notebook_insert_sibling(
+ sibling = mq_notebook_insert_sibling(
MQ_NOTEBOOK(window->notebook),
window->uris[i],
- NULL);
+ sibling);
}
} else {
mq_notebook_insert_sibling(