summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/window.c b/src/window.c
index a4fc61d..02dec1f 100644
--- a/src/window.c
+++ b/src/window.c
@@ -208,9 +208,8 @@ update_positions(GtkNotebook G_GNUC_UNUSED *notebook,
static void
constructed(GObject *object)
{
- MqWindow *window;
- MqTabPage *sibling;
- gsize i;
+ MqWindow *window;
+ gsize i;
window = MQ_WINDOW(object);
@@ -224,18 +223,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) {
- sibling = mq_notebook_insert_sibling(
- MQ_NOTEBOOK(window->notebook),
- window->uris[i],
- sibling);
+ mq_notebook_insert_top(MQ_NOTEBOOK(window->notebook),
+ window->uris[i]);
}
} else {
- mq_notebook_insert_sibling(
- MQ_NOTEBOOK(window->notebook),
- NULL,
- NULL);
+ mq_notebook_insert_top(MQ_NOTEBOOK(window->notebook), NULL);
}
gtk_widget_show_all(GTK_WIDGET(window));