popupMenu: Remove app. from app actions

This commit is contained in:
Colin Walters 2011-12-01 12:33:07 -05:00
parent f884dbbfb2
commit 8997aa45b1

View File

@ -1752,6 +1752,7 @@ const RemoteMenu = new Lang.Class({
} }
let action_id = model.get_item_attribute_value(index, Gio.MENU_ATTRIBUTE_ACTION, null).deep_unpack(); let action_id = model.get_item_attribute_value(index, Gio.MENU_ATTRIBUTE_ACTION, null).deep_unpack();
action_id = action_id.replace('app.', '');
if (!this.actionGroup.has_action(action_id)) { if (!this.actionGroup.has_action(action_id)) {
// the action may not be there yet, wait for action-added // the action may not be there yet, wait for action-added
return [null, false, 'action-added']; return [null, false, 'action-added'];