[gnome-klotski] Use OptionFlags.NONE.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-klotski] Use OptionFlags.NONE.
- Date: Sat, 12 Oct 2019 17:07:34 +0000 (UTC)
commit 338d45c2bbc4535806d334edb83d1efbf7469a65
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Sat Oct 12 19:07:13 2019 +0200
Use OptionFlags.NONE.
Bump GLib required version to 2.42.
meson.build | 2 +-
src/gnome-klotski.vala | 4 ++--
src/klotski-window.vala | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index 71ac563..39e57c7 100644
--- a/meson.build
+++ b/meson.build
@@ -11,7 +11,7 @@ i18n = import('i18n')
python3 = import('python3')
gee_dependency = dependency('gee-0.8')
-glib_dependency = dependency('glib-2.0', version: '>= 2.40.0')
+glib_dependency = dependency('glib-2.0', version: '>= 2.42.0')
gnome_games_support_dependency = dependency('libgnome-games-support-1')
gtk_dependency = dependency('gtk+-3.0', version: '>= 3.12.0')
rsvg_dependency = dependency('librsvg-2.0', version: '>= 2.32.0')
diff --git a/src/gnome-klotski.vala b/src/gnome-klotski.vala
index 0bf3c44..ae589ec 100644
--- a/src/gnome-klotski.vala
+++ b/src/gnome-klotski.vala
@@ -14,8 +14,8 @@ public class Klotski : Gtk.Application
{
private const OptionEntry [] option_entries =
{
- { "version", 'v', 0, OptionArg.NONE, null, N_("Print release version and exit"), null },
- { null }
+ { "version", 'v', OptionFlags.NONE, OptionArg.NONE, null, N_("Print release version and exit"), null
},
+ {}
};
private const GLib.ActionEntry action_entries [] =
diff --git a/src/klotski-window.vala b/src/klotski-window.vala
index 6ab57dc..582834d 100644
--- a/src/klotski-window.vala
+++ b/src/klotski-window.vala
@@ -68,7 +68,7 @@ public class KlotskiWindow : ApplicationWindow
private static Gee.List<Games.Scores.Category> score_categories;
/* Warning: reordering these will screw up import of old scores. */
- private static const LevelInfo levels[] =
+ private const LevelInfo levels[] =
{
/* puzzle name */
{N_("Only 18 Steps"), 0,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]