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/private/preferencesrow_p.cpp | |
| parent | 96ce3ba51c152e854bcc5e7df1c53fe776ca554b (diff) | |
| download | libadwaitamm-2c4e151343828af13b28ec39946b6bf34748c2b3.tar.xz libadwaitamm-2c4e151343828af13b28ec39946b6bf34748c2b3.zip | |
adw: extract class definitions
Diffstat (limited to 'src/private/preferencesrow_p.cpp')
| -rw-r--r-- | src/private/preferencesrow_p.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/private/preferencesrow_p.cpp b/src/private/preferencesrow_p.cpp new file mode 100644 index 0000000..fd5909e --- /dev/null +++ b/src/private/preferencesrow_p.cpp @@ -0,0 +1,34 @@ +#include "adwaitamm/private/preferencesrow_p.hpp" + +#include "adwaitamm/preferencesrow.hpp" + +#include <glibmm/class.h> + +#include <gtkmm/object.h> +#include <gtkmm/private/listboxrow_p.h> + +#include <adwaita.h> + +namespace Adwaita +{ + auto PreferencesRow_Class::init() -> Glib::Class const & + { + if (!gtype_) + { + class_init_func_ = &class_init_function; + register_derived_type(adw_preferences_row_get_type()); + } + return *this; + } + + auto PreferencesRow_Class::class_init_function(void * gclass, void * data) -> void + { + auto const klass = static_cast<BaseClassType *>(gclass); + CppClassParent::class_init_function(klass, data); + } + + auto PreferencesRow_Class::wrap_new(GObject * object) -> Glib::ObjectBase * + { + return Gtk::manage(new PreferencesRow(ADW_PREFERENCES_ROW(object))); + } +} // namespace Adwaita
\ No newline at end of file |
