summaryrefslogtreecommitdiff
path: root/adw/src/private/switchrow_p.cpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2025-04-25 11:56:28 +0200
committerFelix Morgner <felix.morgner@gmail.com>2025-04-25 11:56:28 +0200
commit9d18485db854f4d430e7c45d9538330b21dd66c3 (patch)
tree99b3af6fa6855ef808bf7efca2d2438f669f9ec8 /adw/src/private/switchrow_p.cpp
parent95dc7e43a23300b3eacbb7e1e0a9d4f31a8bd5a0 (diff)
downloadturns-9d18485db854f4d430e7c45d9538330b21dd66c3.tar.xz
turns-9d18485db854f4d430e7c45d9538330b21dd66c3.zip
adw: perform basic code cleanup
Diffstat (limited to 'adw/src/private/switchrow_p.cpp')
-rw-r--r--adw/src/private/switchrow_p.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/adw/src/private/switchrow_p.cpp b/adw/src/private/switchrow_p.cpp
new file mode 100644
index 0000000..0f071c4
--- /dev/null
+++ b/adw/src/private/switchrow_p.cpp
@@ -0,0 +1,41 @@
+/**
+ * @author Felix Morgner (felix.morgner@gmail.com)
+ * @copyright Copyright (c) 2025
+ * SPDX-License-Identifier: LGPL-2.1-or-later
+ */
+
+#include "adwaitamm/private/switchrow_p.hpp"
+
+#include "adwaitamm/switchrow.hpp"
+
+#include <glibmm/class.h>
+#include <glibmm/object.h>
+#include <glibmm/objectbase.h>
+
+#include <gtkmm/object.h>
+
+#include <adwaita.h>
+
+namespace Adwaita
+{
+ auto SwitchRow_Class::init() -> Glib::Class const &
+ {
+ if (!gtype_)
+ {
+ class_init_func_ = &class_init_function;
+ gtype_ = adw_switch_row_get_type();
+ }
+ return *this;
+ }
+
+ auto SwitchRow_Class::class_init_function(void * gclass, void * data) -> void
+ {
+ auto const klass = static_cast<BaseClassType *>(gclass);
+ CppClassParent::class_init_function(klass, data);
+ }
+
+ auto SwitchRow_Class::wrap_new(GObject * object) -> Glib::ObjectBase *
+ {
+ return Gtk::manage(new SwitchRow(ADW_SWITCH_ROW(object)));
+ }
+} // namespace Adwaita \ No newline at end of file