aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
Commit message (Collapse)AuthorAgeFilesLines
* README.md: Add some manual line breaks.Mike Gabriel2017-12-081-3/+3
|
* Use unicode characters directly instead of escaping themLars Uebernickel2014-09-081-20/+26
| | | | | | Launchpad's xgettext seems too old to properly transform the escaped characters. It passes literal characters right through.
* split_settings_location: Initialise the 'first' pointer.Iain Lane2014-04-081-1/+1
| | | | | Otherwise it points to random memory which leads to undefined behaviour.
* add comments & examples for translators to help them to fix bug #1001595 for ↵Charles Kerr2014-03-271-12/+83
| | | | their locale.
* slightly better testing for whether or not a date happened in the past at ↵Charles Kerr2014-03-141-1/+1
| | | | second granularity rather than usec
* in utils.c's generate_full_format_string_at_time(), test to see if the event ↵Charles Kerr2014-03-091-0/+4
| | | | time occurred before the current time
* make utils.cpp's generate_full_format_string_at_time() a standalone function ↵Charles Kerr2014-01-281-0/+307
| | | | so that the panels can use the utils functions without a libindicatordatetime dependency
* add geoclue, glib test fixturesCharles Kerr2013-12-171-453/+0
|
* 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