aboutsummaryrefslogtreecommitdiff
path: root/src/service.c
Commit message (Collapse)AuthorAgeFilesLines
* in the phone profile, move the day-of-week entry from the first menuitem to ↵Charles Kerr2013-09-111-5/+5
| | | | the header action state's title as per the spec
* add 'title' to the root action's state dictCharles Kerr2013-09-111-0/+4
|
* This change adds a GSettings* arg to the utils functions so that they don't ↵Charles Kerr2013-09-081-40/+10
|\ | | | | | | | | | | | | | | 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-6/+7
| | | | | | | | 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-9/+0
| | | | | | | | it in settings-shared.h
| * in service.c, remove unnecessary function get_time_format_mode()Charles Kerr2013-09-071-23/+1
| |
| * copyediting: use G_VARIANT_TYPE_VARDICT instead of G_VARIANT_TYPE('a{sv}')Charles Kerr2013-09-071-2/+2
| |
* | Protect against invalid begin or end dates. Fixes: ↵Ted Gould2013-09-081-4/+4
|\ \ | | | | | | | | | | | | | | | https://bugs.launchpad.net/bugs/1216263. Approved by PS Jenkins bot, Charles Kerr.
| * | Make all seconds a tenth of a second in boundsTed Gould2013-09-061-4/+4
| |/
* | in service.c's create_locations_section(), remove an unnecessary temporaryCharles Kerr2013-09-071-3/+1
| |
* | remove unnecessary strdup/free of the location menuitems' labelsCharles Kerr2013-09-071-3/+0
| |
* | remove unnecessary strdup/free of the location menuitems' labelsCharles Kerr2013-09-071-3/+2
| |
* | in service.c, use g_variant_new_take_string() instead of ↵Charles Kerr2013-09-071-7/+3
|\ \ | |/ |/| | | g_variant_new_string() where appropriate
| * in service.c, use g_variant_new_take_string() instead of ↵Charles Kerr2013-09-051-7/+3
| | | | | | | | g_variant_new_string() where appropriate
* | in update_appointment_lists(), safeguard against NULL GDateTimes.Charles Kerr2013-09-051-12/+13
| |
* | fix 'upcoming appointment' section menuitems issue reported by tedCharles Kerr2013-09-051-6/+3
|/
* use GSlice for allocating/freeing service's TimeLocation structsCharles Kerr2013-09-051-2/+2
|
* use GSlice for allocating/freeing service's setlocation_data structsCharles Kerr2013-09-051-2/+2
|
* update the service to use Planner's async APICharles Kerr2013-09-051-79/+148
|
* Don't use deprecated g_simple_action_group_insert; use ↵Iain Lane2013-08-221-3/+3
| | | | g_action_map_add_action instead
* Use month '1' when constructing the 'begin' range to decide which ↵Iain Lane2013-08-221-1/+1
| | | | | | | | appointments to display. GLib started validating the arguments to g_date_time_new and it turns out that '0' isn't a valid day of the month. :-)
* add 'terse' time formats for phone menu to match the spec.Charles Kerr2013-07-261-16/+17
|
* add the phone's header actionCharles Kerr2013-07-261-10/+92
|
* in the phone menu, add a 'Clock' menuitem above the alarm and appointment ↵Charles Kerr2013-07-251-0/+6
| | | | events.
* add a calendar icon to the todays-date menuitems as per specCharles Kerr2013-07-251-4/+7
|
* add calendar section for the phone menuCharles Kerr2013-07-251-29/+57
|
* split the phone and desktop flavors of the appointments section s.t. the ↵Charles Kerr2013-07-251-38/+54
| | | | phone menu doesn't have a 'Add Event…' menuitem
* in the appointments section, only show the next instance of recurring ↵Charles Kerr2013-07-251-1/+7
| | | | events. If the event is daily, say so in the time format string.
* Add support for displaying alarms.Charles Kerr2013-07-251-4/+10
| | | | | EDS treats alarms as attributes of existing calendar events, so the difference in supporting them in the indicator is largely visual -- we use a different x-canonical-type for the menuitem so that clients can render them differently, such as with an alarm icon.
* for the phone menu, add a 'Time & Date settings...' menuitem to launch ↵Charles Kerr2013-07-251-9/+29
| | | | 'system-settings time-date'
* add a (currently unimplemented) PROFILE_PHONE to our enumCharles Kerr2013-07-251-9/+16
|
* in service.c, use 'desktop_greeter' as the key instead of 'greeter'Charles Kerr2013-07-011-1/+1
|
* use … directly in strings instead of the C octal escaped UTF-8.Charles Kerr2013-06-281-1/+1
|
* remove the --replace command-line argument and property as we're using ↵Charles Kerr2013-06-201-91/+11
| | | | upstart for that
* in our async callbacks, don't call g_warning() when we get a ↵Charles Kerr2013-06-191-3/+9
| | | | G_IO_ERROR_CANCELLED
* in the gnome control center datetime panel, use g_bus_watch_name() to see if ↵Charles Kerr2013-06-191-3/+1
| | | | com.canonical.indicator.datetime is available.
* put the service on the production busnameCharles Kerr2013-06-191-1/+1
|
* make indicator_datetime_service_set_calendar_date() public. This is another ↵Charles Kerr2013-06-171-10/+32
| | | | one we'll need for unit tests
* copyediting: better variable names, function names, commentsCharles Kerr2013-06-171-23/+21
|
* in service.c, use GDateTime internally instead of time_tCharles Kerr2013-06-171-11/+13
|
* in service.c, replace all calls to time(NULL) and ↵Charles Kerr2013-06-171-56/+55
| | | | 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 service.c, fix virtual finalize() function chaining upCharles Kerr2013-06-151-1/+1
|
* land the service implementationCharles Kerr2013-06-141-68/+1289
|
* add a service boilerplate similar to the one in indicator-session. This ↵Charles Kerr2013-05-141-0/+638
doesn't do anything yet; the sections will be added in subsequent commits