[gnome-tetravex] Use OptionFlags.NONE.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tetravex] Use OptionFlags.NONE.
- Date: Sat, 12 Oct 2019 17:08:19 +0000 (UTC)
commit f08a9807760d4941c755630ba8d610ca7503a137
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Oct 12 19:00:06 2019 +0200
Use OptionFlags.NONE.
Bump GLib required version to 2.42.
meson.build | 2 +-
src/gnome-tetravex.vala | 14 ++++++++++----
2 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/meson.build b/meson.build
index 9c596bc..19ac73f 100644
--- a/meson.build
+++ b/meson.build
@@ -20,7 +20,7 @@ localedir = join_paths (get_option ('prefix'), get_option ('localedir'))
datadir = join_paths (get_option ('prefix'), get_option ('datadir'))
# Dependencies
-glib_dep = dependency ('glib-2.0', version: '>= 2.40.0')
+glib_dep = dependency ('glib-2.0', version: '>= 2.42.0')
gtk_dep = dependency ('gtk+-3.0', version: '>= 3.14')
# TODO build requires vala 0.46.3 for GLib vapi
diff --git a/src/gnome-tetravex.vala b/src/gnome-tetravex.vala
index b59a7a8..b1b2b6d 100644
--- a/src/gnome-tetravex.vala
+++ b/src/gnome-tetravex.vala
@@ -53,16 +53,22 @@ private class Tetravex : Gtk.Application
private const OptionEntry [] option_entries =
{
/* Translators: command-line option description, see 'gnome-tetravex --help' */
- { "colors", 'c', 0, OptionArg.INT, ref colors, N_("Set number of colors (2-10)"),
N_("NUMBER") },
+ { "colors", 'c', OptionFlags.NONE, OptionArg.INT, ref colors, N_("Set number of colors (2-10)"),
+
+ /* Translators: in the command-line options description, text to indicate the user should specify
colors number, see 'gnome-tetravex --help' */
+ N_("NUMBER") },
/* Translators: command-line option description, see 'gnome-tetravex --help' */
- { "paused", 'p', 0, OptionArg.NONE, null, N_("Start the game paused"), null },
+ { "paused", 'p', OptionFlags.NONE, OptionArg.NONE, null, N_("Start the game paused"),
null },
/* Translators: command-line option description, see 'gnome-tetravex --help' */
- { "size", 's', 0, OptionArg.INT, ref game_size, N_("Set size of board (2-6)"), N_("SIZE")
},
+ { "size", 's', OptionFlags.NONE, OptionArg.INT, ref game_size, N_("Set size of board (2-6)"),
+
+ /* Translators: in the command-line options description, text to indicate the user should specify
size, see 'gnome-tetravex --help' */
+ N_("SIZE") },
/* Translators: command-line option description, see 'gnome-tetravex --help' */
- { "version", 'v', 0, OptionArg.NONE, null, N_("Print release version and exit"), null },
+ { "version", 'v', OptionFlags.NONE, OptionArg.NONE, null, N_("Print release version and
exit"), null },
{}
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]