[gnome-shell/wip/menus-rebase2] action muxer: drop direct GDBusActionGroup use
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/menus-rebase2] action muxer: drop direct GDBusActionGroup use
- Date: Sat, 17 Dec 2011 18:25:17 +0000 (UTC)
commit 9daf358122e20c881264f022b607b70b5ff3640a
Author: Ryan Lortie <desrt desrt ca>
Date: Sat Dec 17 13:23:26 2011 -0500
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.
src/gactionmuxer.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/gactionmuxer.c b/src/gactionmuxer.c
index 0c10a52..7b49a38 100644
--- a/src/gactionmuxer.c
+++ b/src/gactionmuxer.c
@@ -272,11 +272,11 @@ 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),
- action_name,
- parameter,
- get_platform_data ());
+ 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 ());
else
g_action_group_activate_action (group->group, action_name, parameter);
}
@@ -294,11 +294,11 @@ 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),
- action_name,
- state,
- get_platform_data ());
+ 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 ());
else
g_action_group_change_action_state (group->group, action_name, state);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]