diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2024-07-25 08:20:05 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2024-07-25 08:20:05 +0200 |
| commit | 10a8d40e12b30beec0781deb0af894f66fe3561f (patch) | |
| tree | 43e5ce91406175c0ed141010affff8302e3fa5e1 /app | |
| parent | 075837dc248ee36ec5abe7026bbb44b3c0609d29 (diff) | |
| download | turns-10a8d40e12b30beec0781deb0af894f66fe3561f.tar.xz turns-10a8d40e12b30beec0781deb0af894f66fe3561f.zip | |
turns: add initialization functions
Diffstat (limited to 'app')
| -rw-r--r-- | app/src/application.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/app/src/application.cpp b/app/src/application.cpp index c0aba86..1635cec 100644 --- a/app/src/application.cpp +++ b/app/src/application.cpp @@ -1,6 +1,7 @@ #include "turns/app/application.hpp" -#include "turns/ui/widgets/turn_order_view.hpp" +#include "turns/core/init.hpp" +#include "turns/ui/init.hpp" #include "turns/ui/windows/tracker.hpp" #include <sigc++/functors/mem_fun.h> @@ -16,6 +17,8 @@ namespace turns::app { Gtk::init_gtkmm_internals(); adw_init(); + core::register_types(); + app::register_types(); return std::shared_ptr<application>{new application{}}; } @@ -65,13 +68,6 @@ namespace turns::app m_application->set_accel_for_action("win.next", "<Primary>space"); m_application->set_accel_for_action("win.previous", "<Primary>BackSpace"); m_application->set_accel_for_action("win.add_participant", "<Primary>a"); - - register_derived_widgets(); - } - - auto application::register_derived_widgets() -> void - { - static_cast<void>(widgets::turn_order_view{}); } } // namespace turns::app
\ No newline at end of file |
