tools/gimp-remote.c use G_OPTION_FLAG_NO_ARG where needed.

2005-09-26  Sven Neumann  <sven@gimp.org>

	* tools/gimp-remote.c
	* tools/test-clipboard.c: use G_OPTION_FLAG_NO_ARG where needed.
This commit is contained in:
Sven Neumann 2005-09-26 10:01:22 +00:00 committed by Sven Neumann
parent 40a9621dd2
commit 859c8ae3cb
3 changed files with 9 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2005-09-26 Sven Neumann <sven@gimp.org>
* tools/test-clipboard.c: use G_OPTION_FLAG_NO_ARG where needed.
2005-09-26 Michael Natterer <mitch@gimp.org>
* plug-ins/script-fu/scripts/paste-as-brush.scm
@ -54,8 +58,8 @@
* INSTALL
* configure.in: bumped the required version of glib to 2.8.
* app/main.c: use G_OPTION_ARG_NONE flag with callback options
that take no argument. Fixes command-line options needed for 'make
* app/main.c: use G_OPTION_FLAG_NO_ARG with callback options that
take no argument. Fixes command-line options needed for 'make
dist', such as '--dump-gimprc'
2005-09-26 Michael Natterer <mitch@gimp.org>

View File

@ -73,7 +73,7 @@ static const gchar **filenames = NULL;
static const GOptionEntry main_entries[] =
{
{ "version", 'v', 0,
{ "version", 'v', G_OPTION_FLAG_NO_ARG,
G_OPTION_ARG_CALLBACK, (GOptionArgFunc) show_version,
N_("Show version information and exit"), NULL
},

View File

@ -66,8 +66,7 @@ static const GOptionEntry main_entries[] =
{
"selection-type", 's', 0,
G_OPTION_ARG_CALLBACK, test_clipboard_parse_selection,
"Selection type (primary|secondary|clipboard)",
"<type>"
"Selection type (primary|secondary|clipboard)", "<type>"
},
{
"list-targets", 'l', 0,
@ -95,7 +94,7 @@ static const GOptionEntry main_entries[] =
"Paste clipoard into <file>", "<file>"
},
{
"version", 'v', 0,
"version", 'v', G_OPTION_FLAG_NO_ARG,
G_OPTION_ARG_CALLBACK, test_clipboard_show_version,
"Show version information and exit", NULL
},