mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
allow any kind of widget
This commit is contained in:
parent
f13aff2fa8
commit
b2237879be
3 changed files with 18 additions and 13 deletions
|
|
@ -1,8 +1,7 @@
|
|||
use adw::Clamp;
|
||||
use gtk::{
|
||||
gio::{SimpleAction, SimpleActionGroup},
|
||||
glib::uuid_string_random,
|
||||
prelude::{ActionMapExt, BoxExt, WidgetExt},
|
||||
prelude::{ActionMapExt, BoxExt, IsA, WidgetExt},
|
||||
Box, Orientation,
|
||||
};
|
||||
use std::sync::Arc;
|
||||
|
|
@ -18,9 +17,9 @@ impl Widget {
|
|||
// Actions
|
||||
action_page_open: SimpleAction,
|
||||
// Components
|
||||
navigation: &Box,
|
||||
content: &Box,
|
||||
input: &Clamp,
|
||||
navigation: &impl IsA<gtk::Widget>,
|
||||
content: &impl IsA<gtk::Widget>,
|
||||
input: &impl IsA<gtk::Widget>,
|
||||
) -> Arc<Self> {
|
||||
// Init additional action group
|
||||
let action_group = SimpleActionGroup::new();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue