aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
Commit message (Collapse)AuthorAgeFilesLines
* Add support for showing the year in indicator-datetimeCharles Kerr2013-10-301-10/+22
|
* fix a trio of pedantic gcc warningsCharles Kerr2013-10-181-3/+3
|
* replace autotools with cmakeCharles Kerr2013-10-181-4/+0
|
* phone: show appointments at 1AM as '1 AM', clock times as '1:00 AM'Charles Kerr2013-10-031-2/+8
|
* remove the leading zero in the hour component of 'terse' time format.Charles Kerr2013-10-031-2/+2
|
* sync with trunkCharles Kerr2013-09-091-26/+17
|\
| * This change adds a GSettings* arg to the utils functions so that they don't ↵Charles Kerr2013-09-081-23/+15
| |\ | | | | | | | | | | | | | | | | | | | | | have to churn through temporary GSettings objects. These functions are usually called in a loop, causing a lot of GSettings temporaries, even though the calling code already has an instance for that GSettings schema. Approved by Ted Gould, PS Jenkins bot.
| | * in the utils functions, add a GSettings argument for the functions that use ↵Charles Kerr2013-09-071-15/+14
| | | | | | | | | | | | a GSettings s.t. they don't have to keep reloading settings in a temporary every time they're called.
| | * both service.c and utils.c have an enum for the time format mode, so share ↵Charles Kerr2013-09-071-11/+4
| | | | | | | | | | | | it in settings-shared.h
| * | in our private T_() function, avoid a couple of unnecessary strdup & freesCharles Kerr2013-09-051-3/+2
| |/
* / add preliminary unit tests for utilsCharles Kerr2013-09-071-21/+30
|/
* remove the leading zero from the terse time format string.Charles Kerr2013-07-301-3/+3
|
* add i18n comments to get_terse_date_format_string() and ↵Charles Kerr2013-07-301-6/+26
| | | | get_terse_time_format_string()
* add 'terse' time formats for phone menu to match the spec.Charles Kerr2013-07-261-107/+242
|
* in the appointments section, only show the next instance of recurring ↵Charles Kerr2013-07-251-5/+14
| | | | events. If the event is daily, say so in the time format string.
* in service.c, replace all calls to time(NULL) and ↵Charles Kerr2013-06-171-5/+1
| | | | g_date_time_new_now_local() with a call to the new 'indicator_datetime_service_get_localtime()' func. This is currently a passthrough to _new_now_local(), but we'll need this control point to override the system time in unit testing
* in utils.c, remove unused function read_timezone()Charles Kerr2013-06-141-24/+0
|
* * src/utils.cBob Owen2012-05-251-3/+4
| | | | | | | - generate_format_string_full - Changed space between date and time to Unicode en space. Added using UTF-8 hex encoding (0xE28082) to avoid the need to mess with CFLAGS to add std=c99. (LP: #749847)
* Don't call setenv when value is NULLRobert Ancell2011-09-281-2/+4
|
* update to handle latest gnome-settings-daemon dbus API for setting ↵Michael Terry2011-06-281-0/+24
| | | | timezones; be more fool-proof when looking up current timezone in indicator
* when user clicks a timezone location, switch to that timezone (and support ↵Michael Terry2011-04-071-0/+36
| | | | showing user's preferred name for the current timezone in the menu)
* fix memory leak that also prevented us noticing when the timezone got updatedMichael Terry2011-03-241-0/+2
|
* Strings and sniffle fixes for the best Canonical designer from New Zealand! Ted Gould2011-03-231-3/+3
|\
| * Removed comma from date time indicatorkarl-qdh2011-03-231-1/+1
|/
* remove week-start preferenceMichael Terry2011-02-251-11/+0
|
* disable clicking on locations; use pretty zone names in indicatorMichael Terry2011-02-231-4/+9
|
* add week-start controls and settingsMichael Terry2011-02-231-0/+11
|
* grab timezone names from geomaps; flesh out support for timezone completion ↵Michael Terry2011-02-231-0/+188
| | | | in main map and locations dialog; show times in locations dialog
* first pass at preferences dialogMichael Terry2011-02-171-0/+45