[dconf-editor] Use a safe method to get type_string.



commit 3f1fa8b2f9401adf4d867284b5b33782d1d6088c
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sun Oct 25 05:42:14 2015 +0100

    Use a safe method to get type_string.

 editor/dconf-model.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/editor/dconf-model.vala b/editor/dconf-model.vala
index 48ca5fb..a3eb36a 100644
--- a/editor/dconf-model.vala
+++ b/editor/dconf-model.vala
@@ -106,7 +106,7 @@ public class Directory : SettingObject
             case "enum":    type_string = "<enum>"; break;  // <choices> or enum="", and hopefully <aliases>
             case "flags":   type_string = "<flags>"; break; // flags=""
             default:
-            case "type":    type_string = (string) settings_schema_key.get_value_type ().peek_string (); 
break;
+            case "type":    type_string = settings_schema_key.get_value_type ().dup_string (); break;
         }
 
         GSettingsKey new_key = new GSettingsKey (


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