lib: Fix support for custom GDBusConnections when setting filters

Previously, a caller-provided custom GDBusConnection was dropped on the
ground.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://phabricator.endlessm.com/T24004
This commit is contained in:
Philip Withnall 2018-12-12 13:36:53 +00:00
parent 6d03097512
commit 233048a0df
1 changed files with 1 additions and 0 deletions

View File

@ -1025,6 +1025,7 @@ epc_set_app_filter_async (GDBusConnection *connection,
g_task_set_source_tag (task, epc_set_app_filter_async); g_task_set_source_tag (task, epc_set_app_filter_async);
data = g_new0 (SetAppFilterData, 1); data = g_new0 (SetAppFilterData, 1);
data->connection = (connection != NULL) ? g_object_ref (connection) : NULL;
data->user_id = user_id; data->user_id = user_id;
data->app_filter = epc_app_filter_ref (app_filter); data->app_filter = epc_app_filter_ref (app_filter);
data->allow_interactive_authorization = allow_interactive_authorization; data->allow_interactive_authorization = allow_interactive_authorization;