diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-23 05:45:47 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-23 05:45:47 (EDT) |
commit | 7a07f27ef92a31af22033d9d9d895fcd49e9db57 (patch) | |
tree | ab4cd1f94ca0e85342723aaafb722bac509f9361 | |
parent | 801066d49005cba5888594b7e8e401f15b1bc11a (diff) | |
download | marquee-7a07f27ef92a31af22033d9d9d895fcd49e9db57.zip marquee-7a07f27ef92a31af22033d9d9d895fcd49e9db57.tar.gz marquee-7a07f27ef92a31af22033d9d9d895fcd49e9db57.tar.bz2 |
MqWindow: Use mq_notebook_insert_top()
-rw-r--r-- | src/window.c | 17 |
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)); |