diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-28 12:11:23 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-28 12:11:23 +0200 |
| commit | 6378909a3d85f7f65b5ba5c116d950f96342fed4 (patch) | |
| tree | aae227e4f97348346ea02884fca476778ad660d7 /adw/src/private | |
| parent | 0b4f979c001835b20ff75a848eee83f59c1397c0 (diff) | |
| download | turns-6378909a3d85f7f65b5ba5c116d950f96342fed4.tar.xz turns-6378909a3d85f7f65b5ba5c116d950f96342fed4.zip | |
adw: implement ComboRow
Diffstat (limited to 'adw/src/private')
| -rw-r--r-- | adw/src/private/comborow_p.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/adw/src/private/comborow_p.cpp b/adw/src/private/comborow_p.cpp new file mode 100644 index 0000000..4277db2 --- /dev/null +++ b/adw/src/private/comborow_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/comborow_p.hpp" + +#include "adwaitamm/comborow.hpp" + +#include <glibmm/class.h> +#include <glibmm/object.h> +#include <glibmm/objectbase.h> + +#include <gtkmm/object.h> + +#include <adwaita.h> + +namespace Adwaita +{ + auto ComboRow_Class::init() -> Glib::Class const & + { + if (!gtype_) + { + class_init_func_ = &class_init_function; + register_derived_type(adw_combo_row_get_type()); + } + return *this; + } + + auto ComboRow_Class::class_init_function(void * gclass, void * data) -> void + { + auto const klass = static_cast<BaseClassType *>(gclass); + CppClassParent::class_init_function(klass, data); + } + + auto ComboRow_Class::wrap_new(GObject * object) -> Glib::ObjectBase * + { + return Gtk::manage(new ComboRow(ADW_COMBO_ROW(object))); + } +} // namespace Adwaita
\ No newline at end of file |
