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/mod.rs | |
| parent | e957ea3f5f8315502b1848df24d33d53793bb1a5 (diff) | |
Moves window to window.rs
Diffstat (limited to 'schist_gtk4_gui/src/window/mod.rs')
| -rw-r--r-- | schist_gtk4_gui/src/window/mod.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/schist_gtk4_gui/src/window/mod.rs b/schist_gtk4_gui/src/window/mod.rs deleted file mode 100644 index dcbba04..0000000 --- a/schist_gtk4_gui/src/window/mod.rs +++ /dev/null @@ -1,21 +0,0 @@ -mod imp; - -use gtk::{ - gio, - glib::{self, object::IsA}, -}; - -gtk::glib::wrapper! { - pub struct Window(ObjectSubclass<imp::Window>) - @extends gtk::ApplicationWindow, gtk::Window, gtk::Widget, - @implements gio::ActionGroup, gio::ActionMap, gtk::Accessible, gtk::Buildable, - gtk::ConstraintTarget, gtk::Native, gtk::Root, gtk::ShortcutManager; -} - -impl Window { - pub fn new<A: IsA<gtk::Application>>(app: &A) -> Self { - glib::Object::builder() - .property("application", app) - .build() - } -} |
