mirror of
https://github.com/13hannes11/toolbx-tuner.git
synced 2024-09-03 23:21:00 +02:00
add scrolled window to allow more toolboxes'
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
use crate::gtk::Align;
|
use crate::gtk::Align;
|
||||||
use relm4::factory::FactoryHashMap;
|
use relm4::factory::FactoryHashMap;
|
||||||
|
use relm4::gtk::PolicyType;
|
||||||
use relm4::RelmWidgetExt;
|
use relm4::RelmWidgetExt;
|
||||||
use relm4::{
|
use relm4::{
|
||||||
actions::{RelmAction, RelmActionGroup},
|
actions::{RelmAction, RelmActionGroup},
|
||||||
@@ -92,7 +93,10 @@ impl Component for App {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
gtk::ScrolledWindow {
|
||||||
|
set_hexpand: true,
|
||||||
|
set_vexpand: true,
|
||||||
|
set_hscrollbar_policy: PolicyType::Never,
|
||||||
|
|
||||||
#[local_ref]
|
#[local_ref]
|
||||||
container_box -> gtk::ListBox {
|
container_box -> gtk::ListBox {
|
||||||
@@ -101,6 +105,8 @@ impl Component for App {
|
|||||||
set_margin_all: 30,
|
set_margin_all: 30,
|
||||||
set_css_classes: &["boxed-list"],
|
set_css_classes: &["boxed-list"],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user