diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-16 15:40:22 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-16 15:40:22 (EDT) |
commit | 75966502c600257d85a6ca3ddbcda5408457f7c3 (patch) | |
tree | 19e9602ded93f760755bad515853854a01f64cc5 /src | |
parent | aaef7590ca0e4cda757e5d6033c4bff2ef42327a (diff) | |
download | marquee-75966502c600257d85a6ca3ddbcda5408457f7c3.zip marquee-75966502c600257d85a6ca3ddbcda5408457f7c3.tar.gz marquee-75966502c600257d85a6ca3ddbcda5408457f7c3.tar.bz2 |
mq_window_new(): Open "about:new" if no URIs are given
Diffstat (limited to 'src')
-rw-r--r-- | src/window.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c index 1dd83b3..7fc36cc 100644 --- a/src/window.c +++ b/src/window.c @@ -50,8 +50,12 @@ mq_window_new(gchar **uris) gtk_container_add(GTK_CONTAINER(window->gtk_window), window->gtk_notebook); - for (i = 0; uris && uris[i]; ++i) { - add_tab(window, uris[i], -1); + if (uris && uris[0]) { + for (i = 0; uris && uris[i]; ++i) { + add_tab(window, uris[i], -1); + } + } else { + add_tab(window, "about:new", -1); } gtk_widget_show_all(window->gtk_window); |