aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/settings.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-08-21 17:16:25 +0200
committerfiaxh <git@mx.ax.lt>2017-08-22 16:22:56 +0200
commit4a4b5956c9b12bbfb583da1794ef0184e760ac33 (patch)
tree05a8581e46cc839e3064e5978e0708ad37a056db /libdino/src/settings.vala
parenta8aceb1e395e3d0d5a570f6570a1613e2f990d87 (diff)
downloaddino-4a4b5956c9b12bbfb583da1794ef0184e760ac33.tar.gz
dino-4a4b5956c9b12bbfb583da1794ef0184e760ac33.zip
Move settings from GSettings to own db
Diffstat (limited to 'libdino/src/settings.vala')
-rw-r--r--libdino/src/settings.vala38
1 files changed, 0 insertions, 38 deletions
diff --git a/libdino/src/settings.vala b/libdino/src/settings.vala
deleted file mode 100644
index aac83917..00000000
--- a/libdino/src/settings.vala
+++ /dev/null
@@ -1,38 +0,0 @@
-namespace Dino {
-
-public class Settings {
-
- private GLib.Settings gsettings;
-
- public bool send_typing {
- get { return gsettings.get_boolean("send-typing"); }
- set { gsettings.set_boolean("send-typing", value); }
- }
-
- public bool send_marker {
- get { return gsettings.get_boolean("send-marker"); }
- set { gsettings.set_boolean("send-marker", value); }
- }
-
- public bool notifications {
- get { return gsettings.get_boolean("notifications"); }
- set { gsettings.set_boolean("notifications", value); }
- }
-
- public bool convert_utf8_smileys {
- get { return gsettings.get_boolean("convert-utf8-smileys"); }
- set { gsettings.set_boolean("convert-utf8-smileys", value); }
- }
-
- public Settings(GLib.Settings gsettings) {
- this.gsettings = gsettings;
- }
-
- public static Settings instance() {
- SettingsSchemaSource sss = SettingsSchemaSource.get_default();
- SettingsSchema? schema = sss.lookup("org.dino-im", true);
- return new Settings(new GLib.Settings.full(schema, null, null));
- }
-}
-
-}