mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
fix reference count for action group arguments
This commit is contained in:
parent
6f7a21705e
commit
86fba1dc69
2 changed files with 18 additions and 6 deletions
|
|
@ -37,10 +37,22 @@ impl Browser {
|
|||
let widget = Rc::new(Widget::new(
|
||||
window.gobject(),
|
||||
&[
|
||||
// Connect action groups
|
||||
(action.id(), action.gobject()),
|
||||
(window.action().id(), window.action().gobject()),
|
||||
(window.tab().action().id(), window.tab().action().gobject()),
|
||||
// Connect action groups (to apply accels)
|
||||
(
|
||||
// Browser
|
||||
action.id(),
|
||||
action.gobject().clone(),
|
||||
),
|
||||
(
|
||||
// Window
|
||||
window.action().id(),
|
||||
window.action().gobject().clone(),
|
||||
),
|
||||
(
|
||||
// Tab
|
||||
window.tab().action().id(),
|
||||
window.tab().action().gobject().clone(),
|
||||
),
|
||||
],
|
||||
));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue