mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
update actions
This commit is contained in:
parent
a5fc2a7475
commit
a6ef61486d
24 changed files with 190 additions and 294 deletions
|
|
@ -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()));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue