/soc/2013/ankitkv/gobjectification: b2b1ef1c9b7f: Removed intros...

Ankit Vani a at nevitus.org
Fri Oct 11 18:16:00 EDT 2013


Changeset: b2b1ef1c9b7fee7269f1d9503834e9c2cb3f63ad
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-10-12 03:19 +0530
Branch:	 soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/b2b1ef1c9b7f

Description:

Removed introspection command-line switch from finch and pidgin

diffstat:

 finch/gntfinch.c   |  25 ++++++-------------------
 pidgin/gtkpidgin.c |  39 +++++++++++++--------------------------
 2 files changed, 19 insertions(+), 45 deletions(-)

diffs (127 lines):

diff --git a/finch/gntfinch.c b/finch/gntfinch.c
--- a/finch/gntfinch.c
+++ b/finch/gntfinch.c
@@ -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 @@ init_libpurple(int argc, char **argv)
 	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 @@ init_libpurple(int argc, char **argv)
 
 	/* 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 @@ init_libpurple(int argc, char **argv)
 		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);
diff --git a/pidgin/gtkpidgin.c b/pidgin/gtkpidgin.c
--- a/pidgin/gtkpidgin.c
+++ b/pidgin/gtkpidgin.c
@@ -74,10 +74,6 @@
 # include <signal.h>
 #endif
 
-#ifdef ENABLE_INTROSPECTION
-# include <girepository.h>
-#endif
-
 #include <getopt.h>
 
 
@@ -459,20 +455,17 @@ int pidgin_start(int argc, char *argv[])
 	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 @@ int pidgin_start(int argc, char *argv[])
 	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 @@ int pidgin_start(int argc, char *argv[])
 		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);



More information about the Commits mailing list