action muxer: drop direct GDBusActionGroup use
We now have GRemoteActionGroup interface with the needed API, implemented by GDBusActionGroup. With the new API we could theoretically turn GActionMuxer itself into a GRemoteActionGroup and expose the _full API to the shell so that the timestamps could be passed from there.
This commit is contained in:
parent
b4b3f5a669
commit
9daf358122
@ -272,8 +272,8 @@ g_action_muxer_activate_action (GActionGroup *action_group,
|
||||
|
||||
if (group)
|
||||
{
|
||||
if (G_IS_DBUS_ACTION_GROUP (group->group))
|
||||
g_dbus_action_group_activate_action_full (G_DBUS_ACTION_GROUP (group->group),
|
||||
if (G_IS_REMOTE_ACTION_GROUP (group->group))
|
||||
g_remote_action_group_activate_action_full (G_REMOTE_ACTION_GROUP (group->group),
|
||||
action_name,
|
||||
parameter,
|
||||
get_platform_data ());
|
||||
@ -294,8 +294,8 @@ g_action_muxer_change_action_state (GActionGroup *action_group,
|
||||
|
||||
if (group)
|
||||
{
|
||||
if (G_IS_DBUS_ACTION_GROUP (group->group))
|
||||
g_dbus_action_group_change_action_state_full (G_DBUS_ACTION_GROUP (group->group),
|
||||
if (G_IS_REMOTE_ACTION_GROUP (group->group))
|
||||
g_remote_action_group_change_action_state_full (G_REMOTE_ACTION_GROUP (group->group),
|
||||
action_name,
|
||||
state,
|
||||
get_platform_data ());
|
||||
|
Loading…
Reference in New Issue
Block a user