Mercurial > pidgin
changeset 22066:542d35f101ff
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
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 13 Jan 2008 16:44:39 +0000 |
parents | 9a1f88d6a875 |
children | 3684c9d16f6f 028128f35e41 |
files | pidgin/gtkmain.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 */