gucharmap r1923 - trunk/gucharmap
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gucharmap r1923 - trunk/gucharmap
- Date: Fri, 26 Sep 2008 17:45:41 +0000 (UTC)
Author: chpe
Date: Fri Sep 26 17:45:41 2008
New Revision: 1923
URL: http://svn.gnome.org/viewvc/gucharmap?rev=1923&view=rev
Log:
Add back --version which was lost when removing libgnome usage.
Modified:
trunk/gucharmap/main.c
Modified: trunk/gucharmap/main.c
==============================================================================
--- trunk/gucharmap/main.c (original)
+++ trunk/gucharmap/main.c Fri Sep 26 17:45:41 2008
@@ -27,13 +27,25 @@
#include <gucharmap/gucharmap.h>
#include "gucharmap-settings.h"
#include "gucharmap-window.h"
+
+static gboolean
+option_version_cb (const gchar *option_name,
+ const gchar *value,
+ gpointer data,
+ GError **error)
+{
+ g_printerr ("%s %s\n", _("GNOME Character Map"), VERSION);
+
+ exit (EXIT_SUCCESS);
+ return FALSE;
+}
-gint
-main (gint argc, gchar **argv)
+int
+main (int argc, char **argv)
{
GtkWidget *window;
GdkScreen *screen;
- gint monitor;
+ int monitor;
GdkRectangle rect;
GError *error = NULL;
char *font = NULL;
@@ -41,6 +53,8 @@
{
{ "font", 0, 0, G_OPTION_ARG_STRING, &font,
N_("Font to start with; ex: 'Serif 27'"), N_("FONT") },
+ { "version", 0, G_OPTION_FLAG_HIDDEN | G_OPTION_FLAG_NO_ARG,
+ G_OPTION_ARG_CALLBACK, option_version_cb, NULL, NULL },
{ NULL }
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]