diff options
| author | Joe Carstairs <me@joeac.net> | 2024-12-16 22:06:36 +0000 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2024-12-16 22:06:36 +0000 |
| commit | 9e28aff1c045d7b31b6efb526a80b08048a23d99 (patch) | |
| tree | e22814e8835a3f6ec7468c2e4fd2165dfef32fc1 /schist_gtk4_gui/src/window/imp.rs | |
| parent | e957ea3f5f8315502b1848df24d33d53793bb1a5 (diff) | |
Moves window to window.rs
Diffstat (limited to 'schist_gtk4_gui/src/window/imp.rs')
| -rw-r--r-- | schist_gtk4_gui/src/window/imp.rs | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/schist_gtk4_gui/src/window/imp.rs b/schist_gtk4_gui/src/window/imp.rs deleted file mode 100644 index 82e14b0..0000000 --- a/schist_gtk4_gui/src/window/imp.rs +++ /dev/null @@ -1,50 +0,0 @@ -use gtk::{ - glib::{ - self, - subclass::{ - object::{ - ObjectImpl, - ObjectImplExt, - }, - types::ObjectSubclass, InitializingObject, - }, - }, - subclass::{application_window::ApplicationWindowImpl, widget::{ - CompositeTemplateClass, CompositeTemplateInitializingExt, WidgetImpl - }, window::WindowImpl}, -}; - -#[derive(gtk::CompositeTemplate, Default)] -#[template(resource = "/net/joeac/schist/window.ui")] -pub struct Window { -} - -#[glib::object_subclass] -impl ObjectSubclass for Window { - const NAME: &'static str = "SchistWindow"; - type Type = super::Window; - type ParentType = gtk::ApplicationWindow; - - fn class_init(klass: &mut Self::Class) { - klass.bind_template(); - } - - fn instance_init(obj: &InitializingObject<Self>) { - obj.init_template(); - } -} - -impl ObjectImpl for Window { - fn constructed(&self) { - self.parent_constructed(); - } -} - -impl WidgetImpl for Window { -} - -impl WindowImpl for Window { -} - -impl ApplicationWindowImpl for Window { -} |
