[PATCH] virt-viewer: call gtk_init earlier

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



...this allows to pass gtk specific options like --sync since since they
will be stripped from argv by gtk_init.
Please apply,
 -- Guido
diff --git a/src/main.c b/src/main.c
index fc186ea..6e78363 100644
--- a/src/main.c
+++ b/src/main.c
@@ -910,6 +910,8 @@ int main(int argc, char **argv)
 	int set_verbose = 0;
 	int ret;
 
+	gtk_init(&argc, &argv);
+
 	while ((ch = getopt_long(argc, argv, sopts, lopts, &opt_ind)) != -1) {
 		switch (ch) {
 		case 'h':
@@ -941,7 +943,6 @@ int main(int argc, char **argv)
 		return 1;
 	}
 
-	gtk_init(&argc, &argv);
 
 	name = argv[optind];
 	ret = viewer_start (uri, name, direct, waitvnc, set_verbose,
_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux