evince r3390 - in trunk: . shell
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: evince r3390 - in trunk: . shell
- Date: Thu, 29 Jan 2009 18:27:31 +0000 (UTC)
Author: chpe
Date: Thu Jan 29 18:27:31 2009
New Revision: 3390
URL: http://svn.gnome.org/viewvc/evince?rev=3390&view=rev
Log:
* shell/main.c: (option_version_cb): Add --version which was lost in
the libgnome removal. Bug #562869.
Modified:
trunk/ChangeLog
trunk/shell/main.c
Modified: trunk/shell/main.c
==============================================================================
--- trunk/shell/main.c (original)
+++ trunk/shell/main.c Thu Jan 29 18:27:31 2009
@@ -47,6 +47,18 @@
static gchar *print_settings;
static const char **file_arguments = NULL;
+static gboolean
+option_version_cb (const gchar *option_name,
+ const gchar *value,
+ gpointer data,
+ GError **error)
+{
+ g_print ("%s %s\n", _("GNOME Document Viewer"), VERSION);
+
+ exit (0);
+ return FALSE;
+}
+
static const GOptionEntry goption_options[] =
{
{ "page-label", 'p', 0, G_OPTION_ARG_STRING, &ev_page_label, N_("The page of the document to display."), N_("PAGE")},
@@ -56,6 +68,7 @@
{ "find", 'l', 0, G_OPTION_ARG_STRING, &ev_find_string, N_("The word or phrase to find in the document"), N_("STRING")},
{ "unlink-tempfile", 'u', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &unlink_temp_file, NULL, NULL },
{ "print-settings", 't', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_FILENAME, &print_settings, NULL, NULL },
+ { "version", 0, G_OPTION_FLAG_NO_ARG | G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_CALLBACK, option_version_cb, NULL, NULL },
{ G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &file_arguments, NULL, N_("[FILE...]") },
{ NULL }
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]