update actions

This commit is contained in:
yggverse 2024-11-11 05:11:48 +02:00
parent a5fc2a7475
commit a6ef61486d
24 changed files with 190 additions and 294 deletions

View file

@ -35,7 +35,7 @@ impl Browser {
// Init widget
let widget = Rc::new(Widget::new(
window.gobject(),
window.widget().gobject(),
&[
// Connect action groups (to apply accels)
(
@ -48,11 +48,6 @@ impl Browser {
window.action().id(),
window.action().gobject().clone(),
),
(
// Tab
window.tab().action().id(),
window.tab().action().gobject().clone(),
),
],
));
@ -60,7 +55,7 @@ impl Browser {
action.about().connect_activate({
let window = window.clone();
move || {
About::new().present(Some(window.gobject()));
About::new().present(Some(window.widget().gobject()));
}
});