|
|
@ -1,7 +1,4 @@ |
|
|
|
use gtk::{ |
|
|
|
use gtk::{prelude::BoxExt, Box, Button, Entry, Orientation}; |
|
|
|
prelude::{BoxExt, WidgetExt}, |
|
|
|
|
|
|
|
Box, Button, DirectionType, Entry, Orientation, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
use std::sync::Arc; |
|
|
|
use std::sync::Arc; |
|
|
|
|
|
|
|
|
|
|
|
pub struct Widget { |
|
|
|
pub struct Widget { |
|
|
@ -34,11 +31,6 @@ impl Widget { |
|
|
|
Arc::new(Self { gobject }) |
|
|
|
Arc::new(Self { gobject }) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Actions
|
|
|
|
|
|
|
|
pub fn focus(&self) { |
|
|
|
|
|
|
|
self.gobject.child_focus(DirectionType::Right); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Getters
|
|
|
|
// Getters
|
|
|
|
pub fn gobject(&self) -> &Box { |
|
|
|
pub fn gobject(&self) -> &Box { |
|
|
|
&self.gobject |
|
|
|
&self.gobject |
|
|
|