29 lines
695 B
Rust
Raw Normal View History

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