[dconf-editor] Simple change to how option is parsed.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Simple change to how option is parsed.
- Date: Wed, 6 Dec 2017 04:34:08 +0000 (UTC)
commit 4a3d867ed830ab766f4dfe04640beae8edb28199
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Wed Dec 6 05:33:54 2017 +0100
Simple change to how option is parsed.
editor/dconf-editor.vala | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/editor/dconf-editor.vala b/editor/dconf-editor.vala
index b1ddb5d..2647a30 100644
--- a/editor/dconf-editor.vala
+++ b/editor/dconf-editor.vala
@@ -17,12 +17,12 @@
class ConfigurationEditor : Gtk.Application
{
- private bool disable_warning = false;
+ private static bool disable_warning = false;
private const OptionEntry [] option_entries =
{
{ "version", 'v', 0, OptionArg.NONE, null, N_("Print release version and exit"), null },
- { "I-understand-that-changing-options-can-break-applications", 0, 0, OptionArg.NONE, null, N_("Do
not show initial warning"), null },
+ { "I-understand-that-changing-options-can-break-applications", 0, 0, OptionArg.NONE, ref
disable_warning, N_("Do not show initial warning"), null },
{}
};
@@ -66,8 +66,6 @@ class ConfigurationEditor : Gtk.Application
stdout.printf ("%1$s %2$s\n", "dconf-editor", Config.VERSION);
return Posix.EXIT_SUCCESS;
}
- if (options.contains ("I-understand-that-changing-options-can-break-applications"))
- disable_warning = true;
return -1;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]