bug-buddy r2756 - in trunk: . src
- From: cosimoc svn gnome org
- To: svn-commits-list gnome org
- Subject: bug-buddy r2756 - in trunk: . src
- Date: Mon, 3 Nov 2008 23:47:23 +0000 (UTC)
Author: cosimoc
Date: Mon Nov 3 23:47:23 2008
New Revision: 2756
URL: http://svn.gnome.org/viewvc/bug-buddy?rev=2756&view=rev
Log:
2008-11-04 Cosimo Cecchi <cosimoc gnome org>
* src/bug-buddy.c: (show_version_cb):
Re-add --version option after libgnome dropping.
Modified:
trunk/ChangeLog
trunk/src/bug-buddy.c
Modified: trunk/src/bug-buddy.c
==============================================================================
--- trunk/src/bug-buddy.c (original)
+++ trunk/src/bug-buddy.c Mon Nov 3 23:47:23 2008
@@ -73,6 +73,19 @@
static int bug_count = 0;
static GHashTable *apps = NULL;
+static gboolean
+show_version_cb (const char *option_name,
+ const char *value,
+ gpointer data,
+ GError **error)
+{
+ g_print ("%s %s\n", _("GNOME bug-buddy"), VERSION);
+
+ exit (EXIT_SUCCESS);
+
+ return FALSE;
+}
+
static const GOptionEntry options[] = {
{ "package", '\0', 0, G_OPTION_ARG_STRING, &gopt_data.package, N_("Package containing the program"), N_("PACKAGE") },
{ "appname", '\0', 0, G_OPTION_ARG_FILENAME, &gopt_data.app_file, N_("File name of crashed program"), N_("FILE") },
@@ -80,6 +93,7 @@
{ "include", '\0', 0, G_OPTION_ARG_FILENAME, &gopt_data.include_file, N_("Text file to include in the report"), N_("FILE") },
{ "unlink-tempfile", '\0', 0, G_OPTION_ARG_NONE, &gopt_data.own_file, N_("Delete the included file after reporting"),NULL},
{ "minidump", '\0', 0, G_OPTION_ARG_FILENAME, &gopt_data.minidump_file, N_("MiniDump file with info about the crash"), N_("FILE") },
+ { "version", '\0', G_OPTION_FLAG_NO_ARG, G_OPTION_ARG_CALLBACK, show_version_cb, NULL, NULL },
{ NULL }
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]