Merge lp:~artmello/gsettings-ubuntu-touch-schemas/gsettings-ubuntu-touch-schemas-notifications into lp:gsettings-ubuntu-touch-schemas

Proposed by Arthur Mello
Status: Merged
Approved by: Ken VanDine
Approved revision: 69
Merged at revision: 69
Proposed branch: lp:~artmello/gsettings-ubuntu-touch-schemas/gsettings-ubuntu-touch-schemas-notifications
Merge into: lp:gsettings-ubuntu-touch-schemas
Diff against target: 84 lines (+59/-0)
3 files modified
po/POTFILES.in (+1/-0)
schemas/Makefile.am (+1/-0)
schemas/com.ubuntu.notifications.settings.gschema.xml.in.in (+57/-0)
To merge this branch: bzr merge lp:~artmello/gsettings-ubuntu-touch-schemas/gsettings-ubuntu-touch-schemas-notifications
Reviewer Review Type Date Requested Status
Ken VanDine Approve
Review via email: mp+295376@code.launchpad.net

Commit message

Add new gsettings schema to support new notifications options from Ubuntu System Settings

Description of the change

Add new gsettings schema to support new notifications options from Ubuntu System Settings

To post a comment you must log in.
68. By Arthur Mello

Add new gsettings schema to POTFILES

69. By Arthur Mello

Change notification settings schema to hstore all applications registered for notifications

Revision history for this message
Ken VanDine (ken-vandine) wrote :

This looks fine, just make sure you add the settings migration to the click hook.

review: Approve
70. By Arthur Mello

Add to the schema a property to store if applications can use vibration when in silent mode

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'po/POTFILES.in'
--- po/POTFILES.in 2014-08-01 23:11:07 +0000
+++ po/POTFILES.in 2016-06-30 19:33:59 +0000
@@ -1,6 +1,7 @@
1# List of source files containing translatable strings.1# List of source files containing translatable strings.
2# Please keep this list in alphabetic order.2# Please keep this list in alphabetic order.
3schemas/com.ubuntu.notifications.hub.gschema.xml.in.in3schemas/com.ubuntu.notifications.hub.gschema.xml.in.in
4schemas/com.ubuntu.notifications.settings.gschema.xml.in.in
4schemas/com.ubuntu.phone.gschema.xml.in.in5schemas/com.ubuntu.phone.gschema.xml.in.in
5schemas/com.ubuntu.sound.gschema.xml.in.in6schemas/com.ubuntu.sound.gschema.xml.in.in
6schemas/com.ubuntu.touch.network.gschema.xml.in.in7schemas/com.ubuntu.touch.network.gschema.xml.in.in
78
=== modified file 'schemas/Makefile.am'
--- schemas/Makefile.am 2014-08-01 23:11:07 +0000
+++ schemas/Makefile.am 2016-06-30 19:33:59 +0000
@@ -1,5 +1,6 @@
1desktop_gschemas_in_in = \ 1desktop_gschemas_in_in = \
2 com.ubuntu.notifications.hub.gschema.xml.in.in \2 com.ubuntu.notifications.hub.gschema.xml.in.in \
3 com.ubuntu.notifications.settings.gschema.xml.in.in \
3 com.ubuntu.phone.gschema.xml.in.in \4 com.ubuntu.phone.gschema.xml.in.in \
4 com.ubuntu.sound.gschema.xml.in.in \5 com.ubuntu.sound.gschema.xml.in.in \
5 com.ubuntu.touch.network.gschema.xml.in.in \6 com.ubuntu.touch.network.gschema.xml.in.in \
67
=== added file 'schemas/com.ubuntu.notifications.settings.gschema.xml.in.in'
--- schemas/com.ubuntu.notifications.settings.gschema.xml.in.in 1970-01-01 00:00:00 +0000
+++ schemas/com.ubuntu.notifications.settings.gschema.xml.in.in 2016-06-30 19:33:59 +0000
@@ -0,0 +1,57 @@
1<schemalist gettext-domain="gsettings-ubuntu-touch-schemas">
2 <schema id="com.ubuntu.notifications.settings.applications" path="/com/ubuntu/NotificationSettings/applications/">
3 <key name='applications' type='as'>
4 <default>[]</default>
5 <_summary>Applications</_summary>
6 <_description>
7 List of all applications registered for using notifications.
8 </_description>
9 </key>
10 <key name='vibrate-silent-mode' type='b'>
11 <default>true</default>
12 <_summary>Should Vibrate When in Silent Mode</_summary>
13 <_description>
14 Defines if applications can use vibrations to notify when system is in silent mode.
15 </_description>
16 </key>
17 </schema>
18
19 <schema id="com.ubuntu.notifications.settings">
20 <key name='enable-notifications' type='b'>
21 <default>true</default>
22 <_summary>Notifications Enabled</_summary>
23 <_description>
24 Defines if application can use any supported notification type.
25 This option has precedence over others options.
26 </_description>
27 </key>
28 <key name='use-sounds-notifications' type='b'>
29 <default>true</default>
30 <_summary>Sounds Notifications Enabled</_summary>
31 <_description>
32 Defines if application can use sounds to notify users.
33 </_description>
34 </key>
35 <key name='use-vibrations-notifications' type='b'>
36 <default>true</default>
37 <_summary>Vibrations Notifications Enabled</_summary>
38 <_description>
39 Defines if application can use vibrations to notify users.
40 </_description>
41 </key>
42 <key name='use-bubbles-notifications' type='b'>
43 <default>true</default>
44 <_summary>Bubbles Notifications Enabled</_summary>
45 <_description>
46 Defines if application can use Notification Bubbles to notify users.
47 </_description>
48 </key>
49 <key name='use-list-notifications' type='b'>
50 <default>true</default>
51 <_summary>List Notifications Enabled</_summary>
52 <_description>
53 Defines if application can show messages in the Notification List.
54 </_description>
55 </key>
56 </schema>
57</schemalist>

Subscribers

People subscribed via source and target branches