[dconf-editor] Move SimpleSettingObject.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Move SimpleSettingObject.
- Date: Thu, 9 Aug 2018 04:27:03 +0000 (UTC)
commit d43d02f412e1b9d8707aa5fe3214036b3f508770
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Tue Aug 7 12:52:40 2018 +0200
Move SimpleSettingObject.
editor/browser-view.vala | 25 +++++++++++++++++++++++++
editor/setting-object.vala | 25 -------------------------
2 files changed, 25 insertions(+), 25 deletions(-)
---
diff --git a/editor/browser-view.vala b/editor/browser-view.vala
index c2079ea..f91e348 100644
--- a/editor/browser-view.vala
+++ b/editor/browser-view.vala
@@ -17,6 +17,31 @@
using Gtk;
+private class SimpleSettingObject : Object
+{
+ public uint16 context_id { internal get; internal construct; }
+ public string name { internal get; internal construct; }
+ public string full_name { internal get; internal construct; }
+
+ public string casefolded_name { internal get; private construct; }
+
+ construct
+ {
+ casefolded_name = name.casefold ();
+ }
+
+ internal SimpleSettingObject.from_base_path (uint16 _context_id, string _name, string _base_path)
+ {
+ string _full_name = SettingsModel.recreate_full_name (_base_path, _name,
ModelUtils.is_folder_context_id (_context_id));
+ Object (context_id: _context_id, name: _name, full_name: _full_name);
+ }
+
+ internal SimpleSettingObject.from_full_name (uint16 _context_id, string _name, string _full_name)
+ {
+ Object (context_id: _context_id, name: _name, full_name: _full_name);
+ }
+}
+
[GtkTemplate (ui = "/ca/desrt/dconf-editor/ui/browser-view.ui")]
private class BrowserView : Grid
{
diff --git a/editor/setting-object.vala b/editor/setting-object.vala
index 348b5d2..69d5b20 100644
--- a/editor/setting-object.vala
+++ b/editor/setting-object.vala
@@ -21,31 +21,6 @@ private abstract class SettingObject : Object
public string full_name { internal get; protected construct; }
}
-private class SimpleSettingObject : Object
-{
- public uint16 context_id { internal get; internal construct; }
- public string name { internal get; internal construct; }
- public string full_name { internal get; internal construct; }
-
- public string casefolded_name { internal get; private construct; }
-
- construct
- {
- casefolded_name = name.casefold ();
- }
-
- internal SimpleSettingObject.from_base_path (uint16 _context_id, string _name, string _base_path)
- {
- string _full_name = SettingsModel.recreate_full_name (_base_path, _name,
ModelUtils.is_folder_context_id (_context_id));
- Object (context_id: _context_id, name: _name, full_name: _full_name);
- }
-
- internal SimpleSettingObject.from_full_name (uint16 _context_id, string _name, string _full_name)
- {
- Object (context_id: _context_id, name: _name, full_name: _full_name);
- }
-}
-
private class Directory : SettingObject
{
internal Directory (string _full_name, string _name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]