Commit 750a6681 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

added --version command-line option.

2005-08-22  Sven Neumann  <sven@gimp.org>

	* tools/test-clipboard.c: added --version command-line option.
parent 551e7348
2005-08-22 Sven Neumann <sven@gimp.org>
* tools/test-clipboard.c: added --version command-line option.
2005-08-21 Michael Natterer <mitch@gimp.org>
* app/tools/gimpselectionoptions.c (gimp_selection_options_gui):
......
......@@ -20,6 +20,8 @@
#include <gtk/gtk.h>
#include "libgimpbase/gimpversion.h"
typedef struct _CopyData CopyData;
......@@ -31,6 +33,7 @@ struct _CopyData
};
static void test_clipboard_show_version (void) G_GNUC_NORETURN;
static gboolean test_clipboard_parse_selection (const gchar *option_name,
const gchar *value,
gpointer data,
......@@ -91,6 +94,11 @@ static const GOptionEntry main_entries[] =
G_OPTION_ARG_STRING, &option_paste_filename,
"Paste clipoard into <file>", "<file>"
},
{
"version", 'v', 0,
G_OPTION_ARG_CALLBACK, test_clipboard_show_version,
"Show version information and exit", NULL
},
{ NULL }
};
......@@ -191,6 +199,15 @@ main (gint argc,
return EXIT_SUCCESS;
}
static void
test_clipboard_show_version (void)
{
g_print ("test-clipboard (GIMP clipboard testbed) version %s\n",
GIMP_VERSION);
exit (EXIT_SUCCESS);
}
static gboolean
test_clipboard_parse_selection (const gchar *option_name,
const gchar *value,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment