connect window actions group

This commit is contained in:
yggverse 2024-11-10 08:53:20 +02:00
parent 36b86ef5cf
commit cac4f878ad

View File

@ -65,12 +65,15 @@ impl Browser {
], ],
)); ));
// Connect browser actions to window // Connect actions
widget widget
.gobject() .gobject()
.insert_action_group(action.id(), Some(action.gobject())); .insert_action_group(action.id(), Some(action.gobject()));
// Connect tab actions to window widget
.gobject()
.insert_action_group(window.action().id(), Some(window.action().gobject()));
widget.gobject().insert_action_group( widget.gobject().insert_action_group(
window.tab().action().id(), window.tab().action().id(),
Some(window.tab().action().gobject()), Some(window.tab().action().gobject()),