aboutsummaryrefslogtreecommitdiff
path: root/src/idoactionhelper.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-08-13 18:50:26 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-08-13 18:50:26 +0200
commitbe7301a144e10765a5bcc610b38e0a9e7df4d5cc (patch)
tree0f87d2d226ba4ddaf22f292578d33a302308d596 /src/idoactionhelper.c
parent8b1bba629a99cb8d4afd4d114db66f637acf222c (diff)
downloadayatana-ido-be7301a144e10765a5bcc610b38e0a9e7df4d5cc.tar.gz
ayatana-ido-be7301a144e10765a5bcc610b38e0a9e7df4d5cc.tar.bz2
ayatana-ido-be7301a144e10765a5bcc610b38e0a9e7df4d5cc.zip
Add IdoSourceMenuItem
A menu item showing messaging menu sources.
Diffstat (limited to 'src/idoactionhelper.c')
-rw-r--r--src/idoactionhelper.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/idoactionhelper.c b/src/idoactionhelper.c
index f0e300b..8ce5691 100644
--- a/src/idoactionhelper.c
+++ b/src/idoactionhelper.c
@@ -403,6 +403,26 @@ ido_action_helper_activate (IdoActionHelper *helper)
}
/**
+ * ido_action_helper_activate_with_parameter:
+ * @helper: an #IdoActionHelper
+ * @parameter: a #GVariant containing the parameter
+ *
+ * Activates the action that is associated with this helper passing
+ * @parameter instead the "target" associated with the menu item this
+ * helper is bound to.
+ */
+void
+ido_action_helper_activate_with_parameter (IdoActionHelper *helper,
+ GVariant *parameter)
+{
+ g_return_if_fail (IDO_IS_ACTION_HELPER (helper));
+ g_return_if_fail (parameter != NULL);
+
+ if (helper->actions && helper->action_name)
+ g_action_group_activate_action (helper->actions, helper->action_name, parameter);
+}
+
+/**
* ido_action_helper_change_action_state:
* @helper: an #IdoActionHelper
* @state: the proposed new state of the action