diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-24 20:12:26 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-25 07:43:33 +0200 |
| commit | 2c4e151343828af13b28ec39946b6bf34748c2b3 (patch) | |
| tree | 3572c1e224ad93e51c4a560198732e8f9bac7c99 /src/dialog.cpp | |
| parent | 96ce3ba51c152e854bcc5e7df1c53fe776ca554b (diff) | |
| download | libadwaitamm-2c4e151343828af13b28ec39946b6bf34748c2b3.tar.xz libadwaitamm-2c4e151343828af13b28ec39946b6bf34748c2b3.zip | |
adw: extract class definitions
Diffstat (limited to 'src/dialog.cpp')
| -rw-r--r-- | src/dialog.cpp | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/src/dialog.cpp b/src/dialog.cpp index e240d7f..6f34d3d 100644 --- a/src/dialog.cpp +++ b/src/dialog.cpp @@ -1,6 +1,7 @@ #include "adwaitamm/dialog.hpp" #include "adwaitamm/breakpoint.hpp" +#include "adwaitamm/private/dialog_p.hpp" #include <glibmm/class.h> #include <glibmm/object.h> @@ -25,31 +26,9 @@ namespace Adwaita namespace { - auto constinit _class = Dialog::Class{}; + auto constinit _class = Dialog_Class{}; } // namespace - auto Dialog::Class::init() -> Glib::Class const & - { - if (!gtype_) - { - class_init_func_ = &class_init_function; - register_derived_type(adw_dialog_get_type()); - Gtk::ShortcutManager::add_interface(get_type()); - } - return *this; - } - - auto Dialog::Class::class_init_function(void * gclass, void * data) -> void - { - auto const klass = static_cast<BaseClassType *>(gclass); - CppClassParent::class_init_function(klass, data); - } - - auto Dialog::Class::wrap_new(GObject * object) -> Glib::ObjectBase * - { - return Gtk::manage(new Dialog(ADW_DIALOG(object))); - } - auto Dialog::get_type() -> GType { return _class.init().get_type(); |
