empathy r2370 - trunk/src
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r2370 - trunk/src
- Date: Mon, 2 Feb 2009 20:09:58 +0000 (UTC)
Author: xclaesse
Date: Mon Feb 2 20:09:58 2009
New Revision: 2370
URL: http://svn.gnome.org/viewvc/empathy?rev=2370&view=rev
Log:
Re-add "--version" option from command line.
Thanks to Bruce Cowan, fix bug #569884.
Modified:
trunk/src/empathy.c
Modified: trunk/src/empathy.c
==============================================================================
--- trunk/src/empathy.c (original)
+++ trunk/src/empathy.c Mon Feb 2 20:09:58 2009
@@ -382,6 +382,19 @@
return (retval > 0) ? retval : 0;
}
+static gboolean
+show_version_cb (const char *option_name,
+ const char *value,
+ gpointer data,
+ GError **error)
+{
+ g_print ("%s\n", PACKAGE_STRING);
+
+ exit (EXIT_SUCCESS);
+
+ return FALSE;
+}
+
int
main (int argc, char *argv[])
{
@@ -410,6 +423,8 @@
0, G_OPTION_ARG_NONE, &accounts_dialog,
N_("Show the accounts dialog"),
NULL },
+ { "version", 'v',
+ 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]