aboutsummaryrefslogtreecommitdiff
path: root/src/im-app-menu-item.c
diff options
context:
space:
mode:
authorMarco Trevisan (TreviƱo) <mail@3v1n0.net>2013-04-05 14:14:30 +0000
committerTarmac <Unknown>2013-04-05 14:14:30 +0000
commitbf04788b8464125683d422fa90468d648ab8cfb0 (patch)
tree14eb378890366c748637c3fc620562e486582ba2 /src/im-app-menu-item.c
parent49840f6fd022938e814e301f37013897fe3d6cc7 (diff)
parent23d93b9cf3dceac06f26bf741f9128d556244cbc (diff)
downloadayatana-indicator-messages-bf04788b8464125683d422fa90468d648ab8cfb0.tar.gz
ayatana-indicator-messages-bf04788b8464125683d422fa90468d648ab8cfb0.tar.bz2
ayatana-indicator-messages-bf04788b8464125683d422fa90468d648ab8cfb0.zip
AppSection: use the GAppLaunchContext with event timestamp when launching an app. Fixes: https://bugs.launchpad.net/bugs/627195, https://bugs.launchpad.net/bugs/811461.
Approved by PS Jenkins bot, Lars Uebernickel.
Diffstat (limited to 'src/im-app-menu-item.c')
-rw-r--r--src/im-app-menu-item.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/im-app-menu-item.c b/src/im-app-menu-item.c
index a204631..afd21be 100644
--- a/src/im-app-menu-item.c
+++ b/src/im-app-menu-item.c
@@ -238,7 +238,10 @@ im_app_menu_item_activate (GtkMenuItem *item)
ImAppMenuItemPrivate *priv = IM_APP_MENU_ITEM (item)->priv;
if (priv->action && priv->action_group)
- g_action_group_activate_action (priv->action_group, priv->action, NULL);
+ {
+ guint32 event_time = gtk_get_current_event_time ();
+ g_action_group_activate_action (priv->action_group, priv->action, g_variant_new_uint32(event_time));
+ }
}
static void