diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-16 15:02:42 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-16 15:21:06 (EDT) |
commit | 062b7e6d238f8d4fa3580087a4e2962ae322625f (patch) | |
tree | 21973ffb569c1beec89223035533cbd233f9bc26 /src/main.c | |
parent | aacdf776c6f59a4e24520480693348fcbff2abcd (diff) | |
download | marquee-062b7e6d238f8d4fa3580087a4e2962ae322625f.zip marquee-062b7e6d238f8d4fa3580087a4e2962ae322625f.tar.gz marquee-062b7e6d238f8d4fa3580087a4e2962ae322625f.tar.bz2 |
mq_window_new(): Accept NULL-terminated uris array
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -32,6 +32,7 @@ static gchar *opt_profile; static gboolean opt_private; static gboolean opt_version; +static gchar **opt_uris; static GOptionEntry entries[] = { {"profile", 'P', G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING, @@ -46,6 +47,11 @@ static GOptionEntry entries[] = { &opt_version, "Show application version", NULL}, + {G_OPTION_REMAINING, '\0', + G_OPTION_FLAG_NONE, G_OPTION_ARG_STRING_ARRAY, + &opt_uris, + "URIs", + NULL}, {NULL} }; @@ -73,7 +79,7 @@ main(int argc, char *argv[]) return EXIT_SUCCESS; } - mq_window_new(argc, argv); + mq_window_new(opt_uris); gtk_main(); |