aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-09-02 14:55:08 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-09-02 14:55:08 +0200
commitf58b7c76605623a171d2e6eba82cdbf7a788657d (patch)
treed4ebd48d40105e134fe89e801bfd9a5d005d5f42
parentfa058d5fa53b7abc0e1df5f150c8c451029893ff (diff)
downloadqmenumodel-f58b7c76605623a171d2e6eba82cdbf7a788657d.tar.gz
qmenumodel-f58b7c76605623a171d2e6eba82cdbf7a788657d.tar.bz2
qmenumodel-f58b7c76605623a171d2e6eba82cdbf7a788657d.zip
UnityMenuModel::activate: use gtk_menu_tracker_item_get_action_name
Instead of fetching the action name directly. This will make sure we always get the full action name, including the name space if one is set.
-rw-r--r--libqmenumodel/src/unitymenumodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqmenumodel/src/unitymenumodel.cpp b/libqmenumodel/src/unitymenumodel.cpp
index 5144127..ff65e69 100644
--- a/libqmenumodel/src/unitymenumodel.cpp
+++ b/libqmenumodel/src/unitymenumodel.cpp
@@ -650,7 +650,7 @@ void UnityMenuModel::activate(int index, const QVariant& parameter)
if (parameter.isValid()) {
gchar *action;
- gtk_menu_tracker_item_get_attribute (item, "action", "s", &action);
+ action = gtk_menu_tracker_item_get_action_name (item);
g_action_group_activate_action (G_ACTION_GROUP (priv->muxer), action, Converter::toGVariant(parameter));
g_free (action);