[gnome-taquin] Use OptionFlags.NONE.



commit e6bae7a154ad1382599ad45d7106946f3be6b9ff
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sat Oct 12 19:12:04 2019 +0200

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

 meson.build          |  4 ++--
 src/taquin-main.vala | 15 +++++++++------
 2 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/meson.build b/meson.build
index 34b5d7c..dffe775 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.22.23')
 libm_dependency = cc.find_library('m', required: false) # some platforms do not have libm separated from libc
diff --git a/src/taquin-main.vala b/src/taquin-main.vala
index dc052da..b769e44 100644
--- a/src/taquin-main.vala
+++ b/src/taquin-main.vala
@@ -45,22 +45,25 @@ private class Taquin : Gtk.Application, BaseApplication
     private const OptionEntry [] option_entries =
     {
         /* Translators: command-line option description, see 'gnome-taquin --help' */
-        { "fifteen", 0, 0,  OptionArg.NONE, null,       N_("Play the classical 1880s’ 15-puzzle"), null},
+        { "fifteen", 0, OptionFlags.NONE, OptionArg.NONE, null,        N_("Play the classical 1880s’ 
15-puzzle"), null },
 
         /* Translators: command-line option description, see 'gnome-taquin --help' */
-        { "sixteen", 0, 0, OptionArg.NONE, null,        N_("Try this fun alternative 16-puzzle"), null},
+        { "sixteen", 0, OptionFlags.NONE, OptionArg.NONE, null,        N_("Try this fun alternative 
16-puzzle"), null },
 
         /* Translators: command-line option description, see 'gnome-taquin --help' */
-        { "size", 's', 0, OptionArg.INT, ref tmp_size,  N_("Sets the puzzle edges’ size (3-5, 2-9 for 
debug)"), null},
+        { "size", 's', OptionFlags.NONE, OptionArg.INT, ref tmp_size,  N_("Sets the puzzle edges’ size (3-5, 
2-9 for debug)"),
+
+        /* Translators: in the command-line options description, text to indicate the user should specify a 
size, see 'gnome-taquin --help' */
+                                                                       N_("SIZE") },
 
         /* Translators: command-line option description, see 'gnome-taquin --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 'gnome-taquin --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 'gnome-taquin --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 },
 
         /* Translators: command-line option description, see 'gnome-taquin --help' */
      /* { "no-gtk", 0, 0, OptionArg.NONE, null,         N_("Begins a console game"), null}, TODO */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]