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:

committed by
Colin Walters

parent
951fff5aa0
commit
4aa1fe9ca2
@ -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'];
|
||||
|
Reference in New Issue
Block a user