Another update for GLib API changes

GDBusActionGroup api has changed again, adapt to that.
Also, use a GActionMuxer to add the 'app.' prefix to actions,
instead of manually stripping it out of the action names.
In the future, the muxer will also contain per-window actions
with a 'win.' prefix.
This commit is contained in:
Matthias Clasen
2011-12-15 00:29:31 -05:00
parent 95e5c5cfb1
commit ab4a7c5237
9 changed files with 982 additions and 71 deletions

View File

@ -1752,7 +1752,6 @@ const RemoteMenu = new Lang.Class({
}
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)) {
// the action may not be there yet, wait for action-added
return [null, false, 'action-added'];