summaryrefslogtreecommitdiff
path: root/demo/gclue-service-agent.c
Commit message (Collapse)AuthorAgeFilesLines
* Use automatic char* memory management where possibleMaciej S. Szmigiero2023-01-141-8/+7
| | | | | | Remove explicit g_free () calls and convert char* allocations to g_autofree. Fixes at least one memory leak in gclue_service_agent_handle_authorize_app ().
* Remove manual GError memory managementMaciej S. Szmigiero2023-01-051-3/+2
|
* Don't use G_TYPE_INSTANCE_GET_PRIVATETeemu Ikonen2021-10-211-3/+1
| | | | | | | It has been deprecated since GObject 2.58. Replace with *_get_instance_private() functions generated by GObject G_ADD_PRIVATE macro.
* Drop use of deprecated g_type_class_add_private()Zeeshan Ali2019-01-041-8/+7
| | | | | | | | | Use the G_ADD_PRIVATE() macro instead. This doesn't fix the issue in geocode-glib but that's not an issue since we plan to drop geocode-glib (#88). Fixes #98.
* agent: Register the agent whenever geoclue startsValentin Blot2018-06-291-22/+48
| | | | | | | The agent watches on d-bus and registers whenever it sees geoclue getting alive. https://gitlab.freedesktop.org/geoclue/geoclue/issues/68
* agent: Unimplement unused interface GAsyncInitableValentin Blot2018-06-291-87/+32
| | | | | | The GAsyncInitable interface that was implemented by the agent was not useful. This commit removes this interface implementation to simplify the code and allow the use of user_data for other things.
* Remove redundant '(C)' in copyright headersZeeshan Ali2018-04-221-1/+1
|
* demo,agent: Show reason when providedwip/xdg-authZeeshan Ali (Khattak)2016-02-111-4/+11
| | | | | If app provides a reason string in it's desktop file, show that to the user.
* demo,agent: Critical log message on failing to show notificationZeeshan Ali (Khattak)2016-02-111-0/+1
|
* demo: Agent prints 'geolocation in use' infoZeeshan Ali (Khattak)2014-03-211-0/+42
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=76268
* agent: Fixed object pathZeeshan Ali (Khattak)2014-02-241-5/+4
| | | | | There is no need for object paths to be unique on the bus and having a fixed path will allow us to use it in DBus policy.
* demo,agent: Set max accuracy levelZeeshan Ali (Khattak)2014-02-241-0/+3
| | | | | Otherwise its set to 0 by default and that means geoclue will deny location access to all clients.
* agent: Recognize agents by desktop IDsZeeshan Ali (Khattak)2014-01-281-1/+2
| | | | | rather than binary paths. The rationale is the same as for commit 0d96468f88e4a8f39da521952a21f27d700542df.
* agent: Let agents decide level of location accuracyZeeshan Ali (Khattak)2014-01-171-3/+12
| | | | | | We don't know for sure how the agent UIs will look like in the end but better to already have the needed API in place if agents want to somehow let users choose the accuracy they are confirtable with.
* demo,agent: Make use of desktop id from appsZeeshan Ali (Khattak)2014-01-151-7/+21
|
* agent: No need to pass bus_name to agentsZeeshan Ali (Khattak)2014-01-141-6/+2
| | | | | Agents can gather all needed info about the app from the desktop_id so bus_name becomes redundant.
* agent,service-client: Require desktop file IDZeeshan Ali (Khattak)2014-01-141-7/+7
| | | | | | | Instead of getting a generic title from apps, we now require them to provide a desktop file id. This will allow agents to add some more checks and be able to get all info about the app themselves, including a human-readable title.
* Add a demo user-authorization agentZeeshan Ali (Khattak)2013-09-261-0/+374
It uses libnotify to ask user to authorize the app for access to geolocation info.