# HG changeset patch # User Richard Laager # Date 1200242679 0 # Node ID 542d35f101ffff6ebec05e12fefdecb7e11a63da # Parent 9a1f88d6a8750eb1f02b70d2ab6050751541f719 Allow --sync to reach gtk initialization. This is basically the same as ticket #3133. I swear someone submitted a patch to re-work this code so that this stuff worked in the general case. gtk_init_check removes any arguments it understands. [0] [0] http://developer.gimp.org/api/2.0/gtk/gtk-General.html#gtk-init-check Refs #3133 diff -r 9a1f88d6a875 -r 542d35f101ff pidgin/gtkmain.c --- a/pidgin/gtkmain.c Sun Jan 13 16:25:11 2008 +0000 +++ b/pidgin/gtkmain.c Sun Jan 13 16:44:39 2008 +0000 @@ -508,6 +508,7 @@ {"session", required_argument, NULL, 's'}, {"version", no_argument, NULL, 'v'}, {"display", required_argument, NULL, 'D'}, + {"sync", no_argument, NULL, 'S'}, {0, 0, 0, 0} }; @@ -517,7 +518,7 @@ debug_enabled = FALSE; #endif - /* This is the first Glib function call. Make sure to initialize GThread bfeore then */ + /* Initialize GThread before calling any Glib or GTK+ functions. */ g_thread_init(NULL); #ifdef ENABLE_NLS @@ -654,6 +655,7 @@ opt_si = FALSE; break; case 'D': /* --display */ + case 'S': /* --sync */ /* handled by gtk_init_check below */ break; case '?': /* show terse help */