diff options
Diffstat (limited to 'schist_gtk4_gui/src/window.rs')
| -rw-r--r-- | schist_gtk4_gui/src/window.rs | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/schist_gtk4_gui/src/window.rs b/schist_gtk4_gui/src/window.rs index b1ca9f6..b612e92 100644 --- a/schist_gtk4_gui/src/window.rs +++ b/schist_gtk4_gui/src/window.rs @@ -11,11 +11,16 @@ use gtk::{ }, subclass::{ application_window::ApplicationWindowImpl, - widget::{CompositeTemplateClass, CompositeTemplateInitializingExt, WidgetImpl}, + widget::{ + CompositeTemplateClass, CompositeTemplateInitializingExt, WidgetClassExt, WidgetImpl, + }, window::WindowImpl, }, + TemplateChild, }; +use crate::categories_view::SchistCategoriesView; + gtk::glib::wrapper! { pub struct SchistWindow(ObjectSubclass<SchistWindowSubclass>) @extends gtk::ApplicationWindow, gtk::Window, gtk::Widget, @@ -30,8 +35,11 @@ impl SchistWindow { } #[derive(gtk::CompositeTemplate, Default)] -#[template(resource = "/net/joeac/schist/window.ui")] -pub struct SchistWindowSubclass {} +#[template(resource = "/net/joeac/schist/ui/window.ui")] +pub struct SchistWindowSubclass { + #[template_child] + pub categories_view: TemplateChild<SchistCategoriesView>, +} #[glib::object_subclass] impl ObjectSubclass for SchistWindowSubclass { |
