From 95dc7e43a23300b3eacbb7e1e0a9d4f31a8bd5a0 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 24 Apr 2025 20:12:26 +0200 Subject: adw: extract class definitions --- adw/src/preferencesdialog.cpp | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'adw/src/preferencesdialog.cpp') diff --git a/adw/src/preferencesdialog.cpp b/adw/src/preferencesdialog.cpp index 8c69fef..19c9e35 100644 --- a/adw/src/preferencesdialog.cpp +++ b/adw/src/preferencesdialog.cpp @@ -2,6 +2,7 @@ #include "adwaitamm/dialog.hpp" #include "adwaitamm/preferencespage.hpp" +#include "adwaitamm/private/preferencesdialog_p.hpp" #include #include @@ -24,30 +25,9 @@ namespace Adwaita { namespace { - auto constinit _class = PreferencesDialog::Class{}; + auto constinit _class = PreferencesDialog_Class{}; } // namespace - auto PreferencesDialog::Class::init() -> Glib::Class const & - { - if (!gtype_) - { - class_init_func_ = &class_init_function; - register_derived_type(adw_preferences_dialog_get_type()); - } - return *this; - } - - auto PreferencesDialog::Class::class_init_function(void * gclass, void * data) -> void - { - auto const klass = static_cast(gclass); - CppClassParent::class_init_function(klass, data); - } - - auto PreferencesDialog::Class::wrap_new(GObject * object) -> Glib::ObjectBase * - { - return Gtk::manage(new PreferencesDialog(ADW_PREFERENCES_DIALOG(object))); - } - auto PreferencesDialog::get_type() -> GType { return _class.init().get_type(); -- cgit v1.2.3