29 lines
695 B
Rust
29 lines
695 B
Rust
mod imp;
|
|
|
|
use glib::Object;
|
|
use gtk::glib;
|
|
|
|
glib::wrapper! {
|
|
pub struct DriveMountRow(ObjectSubclass<imp::DriveMountRow>)
|
|
@extends adw::ActionRow, gtk::Widget, gtk::ListBoxRow, adw::PreferencesRow,
|
|
@implements gtk::Accessible, gtk::Actionable, gtk::Buildable, gtk::ConstraintTarget;
|
|
}
|
|
|
|
impl DriveMountRow {
|
|
pub fn new() -> Self {
|
|
Object::builder().build()
|
|
}
|
|
pub fn new_with_scroll(partitions_scroll: >k::ScrolledWindow) -> Self {
|
|
Object::builder()
|
|
.property("partitionscroll", partitions_scroll)
|
|
.build()
|
|
}
|
|
}
|
|
// ANCHOR_END: mod
|
|
|
|
impl Default for DriveMountRow {
|
|
fn default() -> Self {
|
|
Self::new()
|
|
}
|
|
}
|