Add EmptyView Struct.
This commit is contained in:
parent
f1f4d10fe3
commit
774e5b38a0
15
hammond-gtk/src/views/empty.rs
Normal file
15
hammond-gtk/src/views/empty.rs
Normal file
@ -0,0 +1,15 @@
|
||||
use gtk;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct EmptyView {
|
||||
container: gtk::Box,
|
||||
}
|
||||
|
||||
impl EmptyView {
|
||||
pub fn new() -> EmptyView {
|
||||
let builder = gtk::Builder::new_from_resource("/org/gnome/hammond/gtk/empty_view.ui");
|
||||
let view: gtk::Box = builder.get_object("empty_view").unwrap();
|
||||
|
||||
EmptyView { container: view }
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user