Commit 31d43ebe authored by Alberts Muktupāvels's avatar Alberts Muktupāvels
Browse files

desktop: add main settings

parent 7492c0c0
......@@ -153,6 +153,7 @@ PKG_CHECK_MODULES([COMMON], [
PKG_CHECK_MODULES([DESKTOP], [
glib-2.0 >= $GLIB_REQUIRED
gio-2.0 >= $GLIB_REQUIRED
gtk+-3.0 >= $GTK_REQUIRED
])
......
......@@ -5,6 +5,7 @@ override_DATA = 00_gnome-flashback.gschema.override
gsettings_SCHEMAS = \
org.gnome.gnome-flashback.gschema.xml \
org.gnome.gnome-flashback.desktop.gschema.xml \
org.gnome.gnome-flashback.desktop-background.gschema.xml \
org.gnome.gnome-flashback.input-sources.gschema.xml \
$(NULL)
......
<schemalist gettext-domain="gnome-flashback">
<schema id="org.gnome.gnome-flashback.desktop" path="/org/gnome/gnome-flashback/desktop/">
<key name="draw-background" type="b">
<default>true</default>
<summary>Draw desktop background</summary>
<description>If set to true, then GNOME Flashback will draw the desktop background.</description>
</key>
<key name="show-icons" type="b">
<default>true</default>
<summary>Show desktop icons</summary>
<description>If set to true, then GNOME Flashback will draw the icons on the desktop.</description>
</key>
</schema>
</schemalist>
......@@ -115,5 +115,9 @@
<summary>Status Notifier Watcher</summary>
<description>If set to true, then GNOME Flashback application will be used as Status Notifier Watcher.</description>
</key>
<child schema="org.gnome.gnome-flashback.desktop" name="desktop" />
<child schema="org.gnome.gnome-flashback.desktop-background" name="desktop-background" />
<child schema="org.gnome.gnome-flashback.input-sources" name="input-sources" />
</schema>
</schemalist>
......@@ -18,21 +18,43 @@
#include "config.h"
#include "gf-desktop.h"
#include <gio/gio.h>
struct _GfDesktop
{
GObject parent;
GObject parent;
GSettings *settings;
};
G_DEFINE_TYPE (GfDesktop, gf_desktop, G_TYPE_OBJECT)
static void
gf_desktop_dispose (GObject *object)
{
GfDesktop *self;
self = GF_DESKTOP (object);
g_clear_object (&self->settings);
G_OBJECT_CLASS (gf_desktop_parent_class)->dispose (object);
}
static void
gf_desktop_class_init (GfDesktopClass *self_class)
{
GObjectClass *object_class;
object_class = G_OBJECT_CLASS (self_class);
object_class->dispose = gf_desktop_dispose;
}
static void
gf_desktop_init (GfDesktop *self)
{
self->settings = g_settings_new ("org.gnome.gnome-flashback.desktop");
}
GfDesktop *
......
......@@ -7,6 +7,7 @@ data/autostart/gnome-flashback-screensaver.desktop.in
data/directories/X-GNOME-Flashback-Settings.directory.desktop.in
data/directories/X-GNOME-Flashback-Settings-System.directory.desktop.in
data/schemas/org.gnome.gnome-flashback.gschema.xml
data/schemas/org.gnome.gnome-flashback.desktop.gschema.xml
data/schemas/org.gnome.gnome-flashback.desktop-background.gschema.xml
data/schemas/org.gnome.gnome-flashback.input-sources.gschema.xml
data/ui/gf-confirm-display-change-dialog.ui
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment