Merge lp:~karl-qdh/indicator-datetime/fixappointmentformat into lp:indicator-datetime/0.3
Proposed by
Karl Lattimer
Status: | Merged |
---|---|
Merged at revision: | 65 |
Proposed branch: | lp:~karl-qdh/indicator-datetime/fixappointmentformat |
Merge into: | lp:indicator-datetime/0.3 |
Prerequisite: | lp:~karl-qdh/indicator-datetime/calendarmenuitemsignals |
Diff against target: |
64 lines (+32/-5) 2 files modified
src/datetime-service.c (+28/-5) src/settings-shared.h (+4/-0) |
To merge this branch: | bzr merge lp:~karl-qdh/indicator-datetime/fixappointmentformat |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ted Gould | Pending | ||
Review via email: mp+53215@code.launchpad.net |
This proposal supersedes a proposal from 2011-03-08.
Description of the change
Fixes bug #727100
To post a comment you must log in.
On Tue, 2011-03-08 at 16:09 +0000, Karl Lattimer wrote: get_string( conf, SETTINGS_ TIME_FORMAT_ S); time_format_ str, "12-hour") == 0) { TIME_12_ HOUR; time_format_ str, "24-hour") == 0) { TIME_24_ HOUR; TIME_LOCALE;
> + gchar *time_format_str = g_settings_
> + gint apt_output;
> + if (g_strcmp0(
> + apt_output = SETTINGS_
> + } else if (g_strcmp0(
> + apt_output = SETTINGS_
> + } else {
> + apt_output = SETTINGS_
> + }
I think that you should be able to use priv->time_mode instead of
apt_output here.
> + if (apt_output == SETTINGS_ TIME_12_ HOUR) { TIME_12_ FORMAT, due); TIME_12_ FORMAT_ WITH_DAY, due); TIME_24_ HOUR) { TIME_24_ FORMAT, due); TIME_24_ FORMAT_ WITH_DAY, due); TIME_FORMAT, due); TIME_FORMAT_ WITH_DAY, due);
> + if ((mday == dmday) && (mon == dmon) && (year == dyear))
> + strftime(right, 20, DEFAULT_
> + else
> + strftime(right, 20, DEFAULT_
> + } else if (apt_output == SETTINGS_
> + if ((mday == dmday) && (mon == dmon) && (year == dyear))
> + strftime(right, 20, DEFAULT_
> + else
> + strftime(right, 20, DEFAULT_
> + } else {
> + if ((mday == dmday) && (mon == dmon) && (year == dyear))
> + strftime(right, 20, DEFAULT_
> + else
> + strftime(right, 20, DEFAULT_
> + }
> +
All of the strings being passed to strftime need a _() around them so
that they go through gettext.
review needsfixing