From 2d7e34441f4d33dc1edb5e9871b66b4977069bae Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Fri, 3 Aug 2012 12:26:32 +0200 Subject: migrate to GSettings --- data/Makefile.am | 19 ++-------- data/mate-notification-daemon.schemas.in | 53 ---------------------------- data/org.mate.NotificationDaemon.gschema.xml | 24 +++++++++++++ 3 files changed, 27 insertions(+), 69 deletions(-) delete mode 100644 data/mate-notification-daemon.schemas.in create mode 100644 data/org.mate.NotificationDaemon.gschema.xml (limited to 'data') diff --git a/data/Makefile.am b/data/Makefile.am index 4a80715..32e1d94 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -16,21 +16,11 @@ iconscalable_DATA = icons/scalable/mate-notification-properties.svg servicedir = $(DBUS_SERVICES_DIR) service_DATA = org.freedesktop.mate.Notifications.service -schemasdir = $(MATECONF_SCHEMA_FILE_DIR) -schemas_in_files = mate-notification-daemon.schemas.in -schemas_DATA = $(schemas_in_files:.schemas.in=.schemas) - -@INTLTOOL_SCHEMAS_RULE@ - -if MATECONF_SCHEMAS_INSTALL -install-data-local: - MATECONF_CONFIG_SOURCE=$(MATECONF_SCHEMA_CONFIG_SOURCE) $(MATECONFTOOL) --makefile-install-rule $(schemas_DATA) -else -install-data-local: -endif +gsettings_SCHEMAS = org.mate.NotificationDaemon.gschema.xml +@GSETTINGS_RULES@ EXTRA_DIST = \ - $(schemas_in_files) \ + $(gsettings_SCHEMAS) \ $(service_DATA) \ $(icon16_DATA) \ $(icon22_DATA) \ @@ -39,9 +29,6 @@ EXTRA_DIST = \ $(icon48_DATA) \ $(iconscalable_DATA) -CLEANFILES = $(schemas_DATA) - - gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor install-data-hook: update-icon-cache diff --git a/data/mate-notification-daemon.schemas.in b/data/mate-notification-daemon.schemas.in deleted file mode 100644 index 117d144..0000000 --- a/data/mate-notification-daemon.schemas.in +++ /dev/null @@ -1,53 +0,0 @@ - - - - - /schemas/apps/mate-notification-daemon/popup_location - /apps/mate-notification-daemon/popup_location - mate-notification-daemon - string - bottom_right - - Popup location - Default popup location on the workspace for stack notifications. Allowed values: "top_left","top_right","bottom_left" and "bottom_right" - - - - - /schemas/apps/mate-notification-daemon/theme - /apps/mate-notification-daemon/theme - mate-notification-daemon - string - default - - Current theme - The theme used when displaying notifications. - - - - - /schemas/apps/mate-notification-daemon/sound_enabled - /apps/mate-notification-daemon/sound_enabled - mate-notification-daemon - bool - 1 - - Sound Enabled - Turns on and off sound support for notifications. - - - - - /schemas/apps/mate-notification-daemon/default_sound - /apps/mate-notification-daemon/default_sound - mate-notification-daemon - string - - - Default Sound - The default sound file used unless a notification supplies the 'sound-file' or 'suppress-sound' hint. Leave empty for no default sound. - - - - - diff --git a/data/org.mate.NotificationDaemon.gschema.xml b/data/org.mate.NotificationDaemon.gschema.xml new file mode 100644 index 0000000..14c2bd2 --- /dev/null +++ b/data/org.mate.NotificationDaemon.gschema.xml @@ -0,0 +1,24 @@ + + + + 'bottom_right' + Popup location + Default popup location on the workspace for stack notifications. Allowed values: "top_left","top_right","bottom_left" and "bottom_right" + + + 'default' + Current theme + The theme used when displaying notifications. + + + true + Sound Enabled + Turns on and off sound support for notifications. + + + '' + Default Sound + The default sound file used unless a notification supplies the 'sound-file' or 'suppress-sound' hint. Leave empty for no default sound. + + + -- cgit v1.2.1