mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-23 00:59:42 +02:00
eeshow/main.c (main): gtk_init removes --, so only call it if we have none
This commit is contained in:
parent
f4944a5da9
commit
e949130daf
@ -98,14 +98,15 @@ int main(int argc, char **argv)
|
|||||||
char **gfx_argv;
|
char **gfx_argv;
|
||||||
const struct gfx_ops **ops = ops_list;
|
const struct gfx_ops **ops = ops_list;
|
||||||
|
|
||||||
gtk_init(&argc, &argv);
|
|
||||||
|
|
||||||
for (dashdash = 1; dashdash != argc; dashdash++)
|
for (dashdash = 1; dashdash != argc; dashdash++)
|
||||||
if (!strcmp(argv[dashdash], "--")) {
|
if (!strcmp(argv[dashdash], "--")) {
|
||||||
have_dashdash = 1;
|
have_dashdash = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!have_dashdash)
|
||||||
|
gtk_init(&argc, &argv);
|
||||||
|
|
||||||
while ((c = getopt(dashdash, argv, "rvC:H:")) != EOF)
|
while ((c = getopt(dashdash, argv, "rvC:H:")) != EOF)
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'r':
|
case 'r':
|
||||||
|
Loading…
Reference in New Issue
Block a user