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



commit 93aa36d69c9c9a6ef15e2c706173bef3a817208e
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 a3827c2..7b8e833 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]