diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-23 05:27:17 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-23 05:27:17 (EDT) |
commit | e6aafb17239af0e6e7aabeeaa06d20cd6d7f4de7 (patch) | |
tree | f951b257a1e4193d0b24fba02953ae91e7b22ebc /src | |
parent | 711964ab6cf30a4db8d93afd1e7976b10a7aa48a (diff) | |
download | marquee-e6aafb17239af0e6e7aabeeaa06d20cd6d7f4de7.zip marquee-e6aafb17239af0e6e7aabeeaa06d20cd6d7f4de7.tar.gz marquee-e6aafb17239af0e6e7aabeeaa06d20cd6d7f4de7.tar.bz2 |
MqWindow: Append (rather than prepend) tabs
Diffstat (limited to 'src')
-rw-r--r-- | src/window.c | 10 |
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( |