mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
27 lines
457 B
Rust
27 lines
457 B
Rust
mod widget;
|
|
use widget::Widget;
|
|
|
|
use gtk::prelude::IsA;
|
|
use std::rc::Rc;
|
|
|
|
pub struct Unsupported {
|
|
widget: Rc<Widget>,
|
|
}
|
|
|
|
impl Unsupported {
|
|
// Construct
|
|
|
|
/// Create new `Self`
|
|
pub fn new() -> Self {
|
|
Self {
|
|
widget: Rc::new(Widget::new()),
|
|
}
|
|
}
|
|
|
|
// Actions
|
|
|
|
/// Show dialog for given parent
|
|
pub fn present(&self, parent: Option<&impl IsA<gtk::Widget>>) {
|
|
self.widget.present(parent)
|
|
}
|
|
}
|