From e6aafb17239af0e6e7aabeeaa06d20cd6d7f4de7 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 23 Oct 2017 05:27:17 -0400 Subject: MqWindow: Append (rather than prepend) tabs --- (limited to 'src') 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( -- cgit v0.9.1