Call gtk_init early to ensure it grabs args like --sync
Daniel P. Berrange
16 years ago
9 | 9 |
Chris Lalancette <clalance-at-redhat-dot-com>
|
10 | 10 |
Atsushi SAKAI <sakaia-at-jp-dot-fujitsu-dot-com>
|
11 | 11 |
Richard W.M. Jones <rjones-at-redhat-dot-com>
|
|
12 |
Guido G\374nther <agx-at-sigxcpu-dot-org>
|
12 | 13 |
|
13 | 14 |
...send patches to get your name here...
|
14 | 15 |
|
909 | 909 |
int set_verbose = 0;
|
910 | 910 |
int ret;
|
911 | 911 |
|
|
912 |
gtk_init(&argc, &argv);
|
|
913 |
|
912 | 914 |
while ((ch = getopt_long(argc, argv, sopts, lopts, &opt_ind)) != -1) {
|
913 | 915 |
switch (ch) {
|
914 | 916 |
case 'h':
|
|
940 | 942 |
return 1;
|
941 | 943 |
}
|
942 | 944 |
|
943 | |
gtk_init(&argc, &argv);
|
944 | 945 |
|
945 | 946 |
name = argv[optind];
|
946 | 947 |
ret = viewer_start (uri, name, direct, waitvnc, set_verbose,
|