[dconf-editor/gnome-3-22] Correct generated code.



commit cd08b0355dee07731830ecc77027ea7ad87670b6
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu Oct 12 13:06:06 2017 +0200

    Correct generated code.

 editor/dconf-view.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/editor/dconf-view.vala b/editor/dconf-view.vala
index 092f7f4..65dd99c 100644
--- a/editor/dconf-view.vala
+++ b/editor/dconf-view.vala
@@ -459,9 +459,10 @@ private class KeyEditorChildDefault : Entry, KeyEditorChild
             variant = new Variant.string (this.text);
             return true;
         }
+
+        string tmp_text = is_string ? @"'$text'" : this.text; // don't put in the try{} for correct C code
         try
         {
-            string tmp_text = is_string ? @"'$text'" : this.text;
             Variant? tmp_variant = Variant.parse (new VariantType (variant_type), tmp_text);
             variant = (!) tmp_variant;
 


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