pika-installer-gtk4/src/drive_mount_row/mod.rs

29 lines
695 B
Rust
Raw Normal View History

2024-02-11 15:39:32 +01:00
mod imp;
use glib::Object;
use gtk::glib;
glib::wrapper! {
2024-02-11 19:02:16 +01:00
pub struct DriveMountRow(ObjectSubclass<imp::DriveMountRow>)
2024-02-11 15:39:32 +01:00
@extends adw::ActionRow, gtk::Widget, gtk::ListBoxRow, adw::PreferencesRow,
@implements gtk::Accessible, gtk::Actionable, gtk::Buildable, gtk::ConstraintTarget;
}
2024-02-11 19:02:16 +01:00
impl DriveMountRow {
2024-02-11 15:39:32 +01:00
pub fn new() -> Self {
Object::builder().build()
}
2024-02-16 08:51:28 +01:00
pub fn new_with_scroll(partitions_scroll: &gtk::ScrolledWindow) -> Self {
2024-02-16 22:21:09 +01:00
Object::builder()
.property("partitionscroll", partitions_scroll)
.build()
2024-02-16 08:51:28 +01:00
}
2024-02-11 19:02:16 +01:00
}
2024-02-16 08:51:28 +01:00
// ANCHOR_END: mod
2024-02-11 19:02:16 +01:00
impl Default for DriveMountRow {
fn default() -> Self {
Self::new()
}
2024-02-16 22:21:09 +01:00
}