libeos-parental-controls: Rename a callback function
Make it a bit clearer that it gets the bus purely for the getter method for parental controls, which it is hard-coded to chain to. This will clarify some later changes. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://phabricator.endlessm.com/T24025
This commit is contained in:
parent
42a3222651
commit
bf76bc3e4d
|
@ -237,7 +237,7 @@ bus_error_to_app_filter_error (const GError *bus_error,
|
||||||
return g_error_copy (bus_error);
|
return g_error_copy (bus_error);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void get_bus_cb (GObject *obj,
|
static void get_app_filter_get_bus_cb (GObject *obj,
|
||||||
GAsyncResult *result,
|
GAsyncResult *result,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
static void get_app_filter (GDBusConnection *connection,
|
static void get_app_filter (GDBusConnection *connection,
|
||||||
|
@ -309,13 +309,13 @@ epc_get_app_filter_async (GDBusConnection *connection,
|
||||||
|
|
||||||
if (connection == NULL)
|
if (connection == NULL)
|
||||||
g_bus_get (G_BUS_TYPE_SYSTEM, cancellable,
|
g_bus_get (G_BUS_TYPE_SYSTEM, cancellable,
|
||||||
get_bus_cb, g_steal_pointer (&task));
|
get_app_filter_get_bus_cb, g_steal_pointer (&task));
|
||||||
else
|
else
|
||||||
get_app_filter (connection, g_steal_pointer (&task));
|
get_app_filter (connection, g_steal_pointer (&task));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
get_bus_cb (GObject *obj,
|
get_app_filter_get_bus_cb (GObject *obj,
|
||||||
GAsyncResult *result,
|
GAsyncResult *result,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue