Merge lp:~kbailey4444/switchboard-plug-datetime/fix-1577107 into lp:~elementary-apps/switchboard-plug-datetime/trunk

Proposed by Keith Bailey
Status: Merged
Merged at revision: 128
Proposed branch: lp:~kbailey4444/switchboard-plug-datetime/fix-1577107
Merge into: lp:~elementary-apps/switchboard-plug-datetime/trunk
Diff against target: 14 lines (+2/-2)
1 file modified
src/Plug.vala (+2/-2)
To merge this branch: bzr merge lp:~kbailey4444/switchboard-plug-datetime/fix-1577107
Reviewer Review Type Date Requested Status
elementary Apps team Pending
Review via email: mp+293705@code.launchpad.net

Description of the change

This fixes Bug #1577107 . The time format should now be displayed correctly. The bug was due to the use of the function get_user_value("clock-format") instead get_value("clock-format"). This caused the time format that was last set by a user to be displayed rather than the current time format.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Plug.vala'
2--- src/Plug.vala 2015-12-20 04:07:37 +0000
3+++ src/Plug.vala 2016-05-04 03:37:43 +0000
4@@ -159,8 +159,8 @@
5 * Setup Clock Format
6 */
7 clock_settings = new Settings ();
8- Variant value;
9- value = clock_settings.schema.get_user_value ("clock-format");
10+ Variant value;
11+ value = clock_settings.schema.get_value ("clock-format");
12 if (value != null && clock_settings.clock_format == "24h") {
13 time_format_combobox.active = 0;
14 } else {

Subscribers

People subscribed via source and target branches

to all changes: