summaryrefslogtreecommitdiff
path: root/adw/src/private/preferencespage_p.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2025-04-24 20:12:26 +0200
committerFelix Morgner <felix.morgner@gmail.com>2025-04-25 07:43:33 +0200
commit95dc7e43a23300b3eacbb7e1e0a9d4f31a8bd5a0 (patch)
tree9fedc2fef0f5459f3df38c91f3b6366ffb9d48b3 /adw/src/private/preferencespage_p.cpp
parent48eb849abde6c9af75c015a9721c9b337f3a5fd9 (diff)
downloadturns-95dc7e43a23300b3eacbb7e1e0a9d4f31a8bd5a0.tar.xz
turns-95dc7e43a23300b3eacbb7e1e0a9d4f31a8bd5a0.zip
adw: extract class definitions
Diffstat (limited to 'adw/src/private/preferencespage_p.cpp')
-rw-r--r--adw/src/private/preferencespage_p.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/adw/src/private/preferencespage_p.cpp b/adw/src/private/preferencespage_p.cpp
new file mode 100644
index 0000000..b9d9c59
--- /dev/null
+++ b/adw/src/private/preferencespage_p.cpp
@@ -0,0 +1,35 @@
+#include "adwaitamm/private/preferencespage_p.hpp"
+
+#include "adwaitamm/preferencespage.hpp"
+
+#include <glibmm/class.h>
+#include <glibmm/object.h>
+
+#include <gtkmm/object.h>
+#include <gtkmm/private/widget_p.h>
+
+#include <adwaita.h>
+
+namespace Adwaita
+{
+ auto PreferencesPage_Class::init() -> Glib::Class const &
+ {
+ if (!gtype_)
+ {
+ class_init_func_ = &class_init_function;
+ register_derived_type(adw_preferences_page_get_type());
+ }
+ return *this;
+ }
+
+ auto PreferencesPage_Class::class_init_function(void * gclass, void * data) -> void
+ {
+ auto const klass = static_cast<BaseClassType *>(gclass);
+ CppClassParent::class_init_function(klass, data);
+ }
+
+ auto PreferencesPage_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
+ {
+ return Gtk::manage(new PreferencesPage(ADW_PREFERENCES_PAGE(object)));
+ }
+} // namespace Adwaita \ No newline at end of file