mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
use adw Clamp for input
This commit is contained in:
parent
9be583044f
commit
78c2765d2a
4 changed files with 14 additions and 12 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use adw::ToolbarView;
|
||||
use adw::Clamp;
|
||||
use gtk::{
|
||||
gio::{SimpleAction, SimpleActionGroup},
|
||||
glib::uuid_string_random,
|
||||
|
|
@ -20,7 +20,7 @@ impl Widget {
|
|||
// Components
|
||||
navigation: &Box,
|
||||
content: &Box,
|
||||
input: &ToolbarView,
|
||||
input: &Clamp,
|
||||
) -> Arc<Self> {
|
||||
// Init additional action group
|
||||
let action_group = SimpleActionGroup::new();
|
||||
|
|
@ -33,8 +33,8 @@ impl Widget {
|
|||
.build();
|
||||
|
||||
gobject.append(navigation);
|
||||
gobject.append(input);
|
||||
gobject.append(content);
|
||||
gobject.append(input);
|
||||
|
||||
gobject.insert_action_group(&uuid_string_random(), Some(&action_group));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue