Add EmptyView Struct.

This commit is contained in:
Jordan Petridis 2017-12-01 01:03:10 +02:00
parent f1f4d10fe3
commit 774e5b38a0
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6

View 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 }
}
}