[dconf] editor: Fix bug where enumerations without value set weren't recognised as enumerations
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf] editor: Fix bug where enumerations without value set weren't recognised as enumerations
- Date: Tue, 15 Mar 2011 02:04:07 +0000 (UTC)
commit 0c5d134e737ba1f871d520852da7fdf8304fb992
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Mar 15 13:04:01 2011 +1100
editor: Fix bug where enumerations without value set weren't recognised as enumerations
editor/dconf-model.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/editor/dconf-model.vala b/editor/dconf-model.vala
index 48887fe..f2ca1be 100644
--- a/editor/dconf-model.vala
+++ b/editor/dconf-model.vala
@@ -24,12 +24,12 @@ public class Key : GLib.Object
private set {}
public get
{
- if (_value != null)
+ if (value != null)
{
- if (_value.is_of_type(VariantType.STRING) && has_schema && schema.enum_name != null)
+ if (value.is_of_type(VariantType.STRING) && has_schema && schema.enum_name != null)
return "<enum>";
else
- return _value.get_type_string();
+ return value.get_type_string();
}
else
return schema.type;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]