Sat, 12 Oct 2013 03:19:08 +0530
Removed introspection command-line switch from finch and pidgin
| finch/gntfinch.c | file | annotate | diff | comparison | revisions | |
| pidgin/gtkpidgin.c | file | annotate | diff | comparison | revisions |
--- a/finch/gntfinch.c Sat Oct 12 03:09:53 2013 +0530 +++ b/finch/gntfinch.c Sat Oct 12 03:19:08 2013 +0530 @@ -50,10 +50,6 @@ #include "config.h" #include "package_revision.h" -#ifdef ENABLE_INTROSPECTION -# include <girepository.h> -#endif - static void debug_init(void) { @@ -272,14 +268,11 @@ GStatBuf st; struct option long_options[] = { - {"config", required_argument, NULL, 'c'}, - {"debug", no_argument, NULL, 'd'}, - {"help", no_argument, NULL, 'h'}, - {"nologin", no_argument, NULL, 'n'}, - {"version", no_argument, NULL, 'v'}, -#ifdef ENABLE_INTROSPECTION - {"introspect-dump", required_argument, NULL, 'i'}, -#endif + {"config", required_argument, NULL, 'c'}, + {"debug", no_argument, NULL, 'd'}, + {"help", no_argument, NULL, 'h'}, + {"nologin", no_argument, NULL, 'n'}, + {"version", no_argument, NULL, 'v'}, {0, 0, 0, 0} }; @@ -295,7 +288,7 @@ /* scan command-line options */ opterr = 1; - while ((opt = getopt_long(argc, argv, "c:dhn::vi:", + while ((opt = getopt_long(argc, argv, "c:dhn::v", long_options, NULL)) != -1) { switch (opt) { case 'c': /* config dir */ @@ -314,12 +307,6 @@ case 'v': /* version */ opt_version = TRUE; break; -#ifdef ENABLE_INTROSPECTION - case 'i': /* introspection */ - g_irepository_dump(optarg, NULL); - return 0; - break; -#endif case '?': /* show terse help */ default: show_usage(argv[0], TRUE);
--- a/pidgin/gtkpidgin.c Sat Oct 12 03:09:53 2013 +0530 +++ b/pidgin/gtkpidgin.c Sat Oct 12 03:19:08 2013 +0530 @@ -74,10 +74,6 @@ # include <signal.h> #endif -#ifdef ENABLE_INTROSPECTION -# include <girepository.h> -#endif - #include <getopt.h> @@ -459,20 +455,17 @@ GStatBuf st; struct option long_options[] = { - {"config", required_argument, NULL, 'c'}, - {"debug", optional_argument, NULL, 'd'}, - {"force-online", no_argument, NULL, 'f'}, - {"help", no_argument, NULL, 'h'}, - {"login", optional_argument, NULL, 'l'}, - {"multiple", no_argument, NULL, 'm'}, - {"nologin", no_argument, NULL, 'n'}, - {"session", required_argument, NULL, 's'}, - {"version", no_argument, NULL, 'v'}, - {"display", required_argument, NULL, 'D'}, - {"sync", no_argument, NULL, 'S'}, -#ifdef ENABLE_INTROSPECTION - {"introspect-dump", required_argument, NULL, 'i'}, -#endif + {"config", required_argument, NULL, 'c'}, + {"debug", optional_argument, NULL, 'd'}, + {"force-online", no_argument, NULL, 'f'}, + {"help", no_argument, NULL, 'h'}, + {"login", optional_argument, NULL, 'l'}, + {"multiple", no_argument, NULL, 'm'}, + {"nologin", no_argument, NULL, 'n'}, + {"session", required_argument, NULL, 's'}, + {"version", no_argument, NULL, 'v'}, + {"display", required_argument, NULL, 'D'}, + {"sync", no_argument, NULL, 'S'}, {0, 0, 0, 0} }; @@ -602,9 +595,9 @@ opterr = 1; while ((opt = getopt_long(argc, argv, #ifndef _WIN32 - "c:dfhmnl::s:vi:", + "c:dfhmnl::s:v", #else - "c:dfhmnl::vi:", + "c:dfhmnl::v", #endif long_options, NULL)) != -1) { switch (opt) { @@ -646,12 +639,6 @@ case 'S': /* --sync */ /* handled by gtk_init_check below */ break; -#ifdef ENABLE_INTROSPECTION - case 'i': /* introspection */ - g_irepository_dump(optarg, NULL); - return 0; - break; -#endif case '?': /* show terse help */ default: show_usage(argv[0], TRUE);