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



commit 0f6d3f8ed64035d36174eebbc99cea2c259e5edd
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 e5e7d0c..50544f4 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]