[gsettings-desktop-schemas] schemas: Add schemas for notification filtering



commit 708af9fe096547a6eccc1e89b5dcb08d20570302
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Sun Nov 4 14:50:45 2012 +0100

    schemas: Add schemas for notification filtering
    
    Add schemas for notification settings, both a master
    schema and one for individual applications.
    These will be used by gnome-shell and gnome-control-center.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=687932

 schemas/Makefile.am                                |    3 +-
 ...g.gnome.desktop.notifications.gschema.xml.in.in |   87 ++++++++++++++++++++
 2 files changed, 89 insertions(+), 1 deletions(-)
---
diff --git a/schemas/Makefile.am b/schemas/Makefile.am
index 001c02e..113d8d7 100644
--- a/schemas/Makefile.am
+++ b/schemas/Makefile.am
@@ -19,7 +19,8 @@ desktop_gschemas_in_in =						\
 	org.gnome.desktop.wm.keybindings.gschema.xml.in.in		\
 	org.gnome.desktop.wm.preferences.gschema.xml.in.in		\
 	org.gnome.desktop.input-sources.gschema.xml.in.in		\
-	org.gnome.desktop.privacy.gschema.xml.in.in
+	org.gnome.desktop.privacy.gschema.xml.in.in			\
+	org.gnome.desktop.notifications.gschema.xml.in.in
 
 @INTLTOOL_XML_NOMERGE_RULE@
 
diff --git a/schemas/org.gnome.desktop.notifications.gschema.xml.in.in b/schemas/org.gnome.desktop.notifications.gschema.xml.in.in
new file mode 100644
index 0000000..bb50df7
--- /dev/null
+++ b/schemas/org.gnome.desktop.notifications.gschema.xml.in.in
@@ -0,0 +1,87 @@
+<schemalist>
+  <schema id="org.gnome.desktop.notifications" path="/org/gnome/desktop/notifications/"
+          gettext-domain="@GETTEXT_PACKAGE@">
+    <key name="show-banners" type="b">
+      <default>true</default>
+      <_summary>Show notification banners</_summary>
+      <_description>
+        Whether notification banners are visible for application notifications.
+      </_description>
+    </key>
+
+    <key name="show-in-lock-screen" type="b">
+      <default>true</default>
+      <_summary>Show notifications in the lock screen</_summary>
+      <_description>
+        Whether notifications are shown in the lock screen or not.
+      </_description>
+    </key>
+
+    <!-- Temporary hack until GSettingsList lands -->
+    <key name="application-children" type="as">
+      <default>[]</default>
+      <summary />
+      <description />
+    </key>
+  </schema>
+
+  <schema id="org.gnome.desktop.notifications.application" gettext-domain="@GETTEXT_PACKAGE@">
+    <key name="application-id" type="s">
+      <default>''</default>
+      <_summary>Application ID</_summary>
+      <_description>
+        The application that this policy is for.
+      </_description>
+    </key>
+
+    <key name="enable" type="b">
+      <default>true</default>
+      <_summary>Enable notifications</_summary>
+      <_description>
+        Whether notifications are globally enabled for this application.
+      </_description>
+    </key>
+
+    <key name="enable-sound-alerts" type="b">
+      <default>true</default>
+      <_summary>Enable sound alerts</_summary>
+      <_description>
+        Whether notifications should be accompanied by sound alerts.
+      </_description>
+    </key>
+
+    <key name="show-banners" type="b">
+      <default>true</default>
+      <_summary>Show notification banners</_summary>
+      <_description>
+        Whether notification banners for this application are shown or not. Does not
+        affect clicking on message tray buttons.
+      </_description>
+    </key>
+
+    <key name="force-expanded" type="b">
+      <default>false</default>
+      <_summary>Force automatic expanding of banners</_summary>
+      <_description>
+        Whether notifications from this application are expanded automatically when in banner mode.
+      </_description>
+    </key>
+
+    <key name="show-in-lock-screen" type="b">
+      <default>true</default>
+      <_summary>Show in the lock screen</_summary>
+      <_description>
+        Whether notifications from this application are shown when the screen is locked.
+      </_description>
+    </key>
+
+    <key name="resident-in-lock-screen" type="b">
+      <default>false</default>
+      <_summary>Be resident in the lock screen</_summary>
+      <_description>
+        Whether notifications from this application will be kept until dismissed when the screen is locked.
+      </_description>
+    </key>
+
+  </schema>
+</schemalist>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]