summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-05 21:14:26 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-05 21:14:26 -0300
commit4041acea7b564abdc4ff266542237665320a115c (patch)
treeb2c4411ef35bf1e71dd6b323319740226e6087d7 /main.c
parent12164098658bd4bb80b107d748342f223e62b2a0 (diff)
downloadeeshow-4041acea7b564abdc4ff266542237665320a115c.tar.gz
eeshow-4041acea7b564abdc4ff266542237665320a115c.tar.bz2
eeshow-4041acea7b564abdc4ff266542237665320a115c.zip
eeshow/main.c (main): gtk_init removes --, so only call it if we have none
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index 091bba8..cd920cc 100644
--- a/main.c
+++ b/main.c
@@ -98,14 +98,15 @@ int main(int argc, char **argv)
char **gfx_argv;
const struct gfx_ops **ops = ops_list;
- gtk_init(&argc, &argv);
-
for (dashdash = 1; dashdash != argc; dashdash++)
if (!strcmp(argv[dashdash], "--")) {
have_dashdash = 1;
break;
}
+ if (!have_dashdash)
+ gtk_init(&argc, &argv);
+
while ((c = getopt(dashdash, argv, "rvC:H:")) != EOF)
switch (c) {
case 'r':