diff options
author | Havoc Pennington <hp@redhat.com> | 2002-09-24 20:43:45 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2002-09-24 20:43:45 +0000 |
commit | d027c27ca1afbc0b988f272746b6536e13468b38 (patch) | |
tree | c7b729dd32cfd40f99b998fa3464bd17ff97161c /src/main.c | |
parent | ee26de98de7a16fd201a1b857710b690abd448ba (diff) | |
download | metacity-d027c27ca1afbc0b988f272746b6536e13468b38.tar.gz |
support --version, #92796 patch from Christian Neumair
2002-09-24 Havoc Pennington <hp@redhat.com>
* src/main.c (main): support --version, #92796 patch from
Christian Neumair
* autogen.sh: change gettext test to be happy with
glib-gettextize, #81425
* src/menu.c: change mnemonics to match bug #78999
* src/theme.c (meta_theme_validate): consolidate some
nearly-identical themes for ease of translation, #70962
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -60,10 +60,21 @@ log_handler (const gchar *log_domain, static void usage (void) { - g_print (_("metacity [--disable-sm] [--sm-save-file=FILENAME] [--display=DISPLAY] [--replace]\n")); + g_print (_("metacity [--disable-sm] [--sm-save-file=FILENAME] [--display=DISPLAY] [--replace] [--version]\n")); exit (1); } +static void +version (void) +{ + g_print (_("metacity %s\n" + "Copyright (C) 2001-2002 Havoc Pennington, Red Hat, Inc., and others\n" + "This is free software; see the source for copying conditions.\n" + "There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"), + VERSION); + exit (0); +} + int main (int argc, char **argv) { @@ -136,6 +147,8 @@ main (int argc, char **argv) strcmp (arg, "-h") == 0 || strcmp (arg, "-?") == 0) usage (); + else if (strcmp (arg, "--version") == 0) + version (); else if (strcmp (arg, "--sm-disable") == 0) disable_sm = TRUE; else if (strcmp (arg, "--replace") == 0) |