[dconf-editor] Some formatting on dconf-model.vala.
- From: Arnaud Bonatti <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Some formatting on dconf-model.vala.
- Date: Wed, 19 Aug 2015 09:59:59 +0000 (UTC)
commit b7a7c07fd88119bea22e8cec7cd9ba719fd4b717
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Wed Aug 19 11:43:46 2015 +0200
Some formatting on dconf-model.vala.
editor/dconf-model.vala | 61 ++++++++++++++++++----------------------------
1 files changed, 24 insertions(+), 37 deletions(-)
---
diff --git a/editor/dconf-model.vala b/editor/dconf-model.vala
index adac906..5b18e16 100644
--- a/editor/dconf-model.vala
+++ b/editor/dconf-model.vala
@@ -65,24 +65,15 @@ public class Key : GLib.Object
{
switch (value.classify ())
{
- case Variant.Class.BYTE:
- return new Variant.byte(0);
- case Variant.Class.INT16:
- return new Variant.int16(int16.MIN);
- case Variant.Class.UINT16:
- return new Variant.uint16(uint16.MIN);
- case Variant.Class.INT32:
- return new Variant.int32(int32.MIN);
- case Variant.Class.UINT32:
- return new Variant.uint32(uint32.MIN);
- case Variant.Class.INT64:
- return new Variant.int64(int64.MIN);
- case Variant.Class.UINT64:
- return new Variant.uint64(uint64.MIN);
- case Variant.Class.DOUBLE:
- return new Variant.double(double.MIN);
- default:
- return null;
+ case Variant.Class.BYTE: return new Variant.byte (0);
+ case Variant.Class.INT16: return new Variant.int16 (int16.MIN);
+ case Variant.Class.UINT16: return new Variant.uint16 (uint16.MIN);
+ case Variant.Class.INT32: return new Variant.int32 (int32.MIN);
+ case Variant.Class.UINT32: return new Variant.uint32 (uint32.MIN);
+ case Variant.Class.INT64: return new Variant.int64 (int64.MIN);
+ case Variant.Class.UINT64: return new Variant.uint64 (uint64.MIN);
+ case Variant.Class.DOUBLE: return new Variant.double (double.MIN);
+ default: return null;
}
}
@@ -90,24 +81,15 @@ public class Key : GLib.Object
{
switch (value.classify ())
{
- case Variant.Class.BYTE:
- return new Variant.byte(255);
- case Variant.Class.INT16:
- return new Variant.int16(int16.MAX);
- case Variant.Class.UINT16:
- return new Variant.uint16(uint16.MAX);
- case Variant.Class.INT32:
- return new Variant.int32(int32.MAX);
- case Variant.Class.UINT32:
- return new Variant.uint32(uint32.MAX);
- case Variant.Class.INT64:
- return new Variant.int64(int64.MAX);
- case Variant.Class.UINT64:
- return new Variant.uint64(uint64.MAX);
- case Variant.Class.DOUBLE:
- return new Variant.double(double.MAX);
- default:
- return null;
+ case Variant.Class.BYTE: return new Variant.byte (255);
+ case Variant.Class.INT16: return new Variant.int16 (int16.MAX);
+ case Variant.Class.UINT16: return new Variant.uint16 (uint16.MAX);
+ case Variant.Class.INT32: return new Variant.int32 (int32.MAX);
+ case Variant.Class.UINT32: return new Variant.uint32 (uint32.MAX);
+ case Variant.Class.INT64: return new Variant.int64 (int64.MAX);
+ case Variant.Class.UINT64: return new Variant.uint64 (uint64.MAX);
+ case Variant.Class.DOUBLE: return new Variant.double (double.MAX);
+ default: return null;
}
}
@@ -169,7 +151,12 @@ public class Directory : GLib.Object
private KeyModel _key_model;
public KeyModel key_model
{
- get { update_children(); if (_key_model == null) _key_model = new KeyModel(this); return _key_model;
}
+ get {
+ update_children ();
+ if (_key_model == null)
+ _key_model = new KeyModel (this);
+ return _key_model;
+ }
private set {}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]