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-16 08:51:28 +01:00
|
|
|
|
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: >k::ScrolledWindow) -> Self {
|
|
|
|
Object::builder().property("partitionscroll", partitions_scroll).build()
|
|
|
|
}
|
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-11 15:39:32 +01:00
|
|
|
}
|