From 774e5b38a0d445e33459be66cbd2bbe5801b4e15 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Fri, 1 Dec 2017 01:03:10 +0200 Subject: [PATCH] Add EmptyView Struct. --- hammond-gtk/src/views/empty.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 hammond-gtk/src/views/empty.rs diff --git a/hammond-gtk/src/views/empty.rs b/hammond-gtk/src/views/empty.rs new file mode 100644 index 0000000..c45ef47 --- /dev/null +++ b/hammond-gtk/src/views/empty.rs @@ -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 } + } +}