[iagno] Use OptionFlags.NONE.



commit 30f47d0ccc9bf35bebd055d2cc78328a7d90bf77
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sun Aug 25 20:55:43 2019 +0200

    Use OptionFlags.NONE.
    
    Bump GLib required version to 2.42.

 meson.build    |  4 ++--
 src/iagno.vala | 28 ++++++++++++++--------------
 2 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/meson.build b/meson.build
index abd4b08..862c79d 100644
--- a/meson.build
+++ b/meson.build
@@ -13,8 +13,8 @@ python3 = import('python3')
 cc = meson.get_compiler('c')
 valac = meson.get_compiler('vala')
 
-gio_dependency = dependency('gio-2.0', version: '>= 2.40.0')
-glib_dependency = dependency('glib-2.0', version: '>= 2.40.0')
+gio_dependency = dependency('gio-2.0', version: '>= 2.42.0')
+glib_dependency = dependency('glib-2.0', version: '>= 2.42.0')
 gsound_dependency = dependency('gsound', version: '>= 1.0.2')
 gtk_dependency = dependency('gtk+-3.0', version: '>= 3.24.0')
 libm_dependency = cc.find_library('m', required: false) # some platforms do not have libm separated from libc
diff --git a/src/iagno.vala b/src/iagno.vala
index 1defd9d..4b71f61 100644
--- a/src/iagno.vala
+++ b/src/iagno.vala
@@ -64,46 +64,46 @@ private class Iagno : Gtk.Application, BaseApplication
     private const OptionEntry [] option_entries =
     {
         /* Translators: command-line option description, see 'iagno --help' */
-        { "alternative-start", 0, 0, OptionArg.NONE, ref alternative_start, N_("Start with an alternative 
position"), null},
+        { "alternative-start", 0, OptionFlags.NONE, OptionArg.NONE, ref alternative_start, N_("Start with an 
alternative position"), null},
 
         /* Translators: command-line option description, see 'iagno --help' */
-        { "classic", 0, 0, OptionArg.NONE, ref classic_game,                N_("Play Classic Reversi"), 
null},
+        { "classic", 0, OptionFlags.NONE, OptionArg.NONE, ref classic_game,                N_("Play Classic 
Reversi"), null},
 
         /* Translators: command-line option description, see 'iagno --help' */
-        { "fast-mode", 'f', 0, OptionArg.NONE, ref fast_mode,               N_("Reduce delay before AI 
moves"), null},
+        { "fast-mode", 'f', OptionFlags.NONE, OptionArg.NONE, ref fast_mode,               N_("Reduce delay 
before AI moves"), null},
 
         /* Translators: command-line option description, see 'iagno --help' */
-        { "first", 0, 0, OptionArg.NONE, null,                              N_("Play first"), null},
+        { "first", 0, OptionFlags.NONE, OptionArg.NONE, null,                              N_("Play first"), 
null},
 
         /* Translators: command-line option description, see 'iagno --help' */
-        { "level", 'l', 0, OptionArg.STRING, ref level,                     N_("Set the level of the 
computer’s AI"), "LEVEL"},
+        { "level", 'l', OptionFlags.NONE, OptionArg.STRING, ref level,                     N_("Set the level 
of the computer’s AI"), "LEVEL"},
 
         /* Translators: command-line option description, see 'iagno --help' */
-        { "mute", 0, 0, OptionArg.NONE, null,                               N_("Turn off the sound"), null},
+        { "mute", 0, OptionFlags.NONE, OptionArg.NONE, null,                               N_("Turn off the 
sound"), null},
 
         /* Translators: command-line option description, see 'iagno --help' */
-        { "random-start", 0, 0, OptionArg.NONE, ref random_start,           N_("Start with a random 
position"), null},
+        { "random-start", 0, OptionFlags.NONE, OptionArg.NONE, ref random_start,           N_("Start with a 
random position"), null},
 
         /* Translators: command-line option description, see 'iagno --help' */
-        { "reverse", 0, 0, OptionArg.NONE, ref reverse_game,                N_("Play Reverse Reversi"), 
null},
+        { "reverse", 0, OptionFlags.NONE, OptionArg.NONE, ref reverse_game,                N_("Play Reverse 
Reversi"), null},
 
         /* Translators: command-line option description, see 'iagno --help' */
-        { "second", 0, 0, OptionArg.NONE, null,                             N_("Play second"), null},
+        { "second", 0, OptionFlags.NONE, OptionArg.NONE, null,                             N_("Play 
second"), null},
 
         /* Translators: command-line option description, see 'iagno --help' */
-        { "size", 's', 0, OptionArg.INT, ref size,                          N_("Size of the board (debug 
only)"), "SIZE"},
+        { "size", 's', OptionFlags.NONE, OptionArg.INT, ref size,                          N_("Size of the 
board (debug only)"), "SIZE"},
 
         /* Translators: command-line option description, see 'iagno --help' */
-        { "two-players", 0, 0, OptionArg.NONE, null,                        N_("Two-players mode"), null},
+        { "two-players", 0, OptionFlags.NONE, OptionArg.NONE, null,                        N_("Two-players 
mode"), null},
 
         /* Translators: command-line option description, see 'iagno --help' */
-        { "unmute", 0, 0, OptionArg.NONE, null,                             N_("Turn on the sound"), null},
+        { "unmute", 0, OptionFlags.NONE, OptionArg.NONE, null,                             N_("Turn on the 
sound"), null},
 
         /* Translators: command-line option description, see 'iagno --help' */
-        { "usual-start", 0, 0, OptionArg.NONE, ref usual_start,             N_("Start with the usual 
position"), null},
+        { "usual-start", 0, OptionFlags.NONE, OptionArg.NONE, ref usual_start,             N_("Start with 
the usual position"), null},
 
         /* Translators: command-line option description, see 'iagno --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]