gnome-terminal r3102 - trunk/src
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-terminal r3102 - trunk/src
- Date: Fri, 26 Sep 2008 19:31:59 +0000 (UTC)
Author: chpe
Date: Fri Sep 26 19:31:59 2008
New Revision: 3102
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=3102&view=rev
Log:
Add --version back which was lost in the libgnome exorcism.
Modified:
trunk/src/terminal.c
Modified: trunk/src/terminal.c
==============================================================================
--- trunk/src/terminal.c (original)
+++ trunk/src/terminal.c Fri Sep 26 19:31:59 2008
@@ -328,6 +328,18 @@
static gboolean
+option_version_cb (const gchar *option_name,
+ const gchar *value,
+ gpointer data,
+ GError **error)
+{
+ g_printerr ("%s %s\n", _("GNOME Terminal"), VERSION);
+
+ exit (EXIT_SUCCESS);
+ return FALSE;
+}
+
+static gboolean
option_command_callback (const gchar *option_name,
const gchar *value,
gpointer data,
@@ -1387,6 +1399,7 @@
N_("Execute the remainder of the command line inside the terminal"),
NULL
},
+ { "version", 0, G_OPTION_FLAG_NO_ARG | G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_CALLBACK, option_version_cb, NULL, NULL },
{ NULL, 0, 0, 0, NULL, NULL, NULL }
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]