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

Proposed by Arthur Mello on 2016-05-20
Status: Merged
Approved by: Ken VanDine on 2016-06-02
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 2016-05-20 Approve on 2016-06-02
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 on 2016-05-20

Add new gsettings schema to POTFILES

69. By Arthur Mello on 2016-05-25

Change notification settings schema to hstore all applications registered for notifications

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 on 2016-06-30

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

Subscribers

People subscribed via source and target branches