diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-26 16:33:35 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-26 16:33:35 +0200 |
| commit | 4e4332cb402fd3151e11e7e3b6d673388d7bb4a9 (patch) | |
| tree | a3f578c2990ad5db74c892666357a9a90a58f3d1 /adw/src/private | |
| parent | 9d18485db854f4d430e7c45d9538330b21dd66c3 (diff) | |
| download | turns-4e4332cb402fd3151e11e7e3b6d673388d7bb4a9.tar.xz turns-4e4332cb402fd3151e11e7e3b6d673388d7bb4a9.zip | |
adw: implement AboutDialog
Diffstat (limited to 'adw/src/private')
| -rw-r--r-- | adw/src/private/aboutdialog_p.cpp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/adw/src/private/aboutdialog_p.cpp b/adw/src/private/aboutdialog_p.cpp new file mode 100644 index 0000000..ac923a8 --- /dev/null +++ b/adw/src/private/aboutdialog_p.cpp @@ -0,0 +1,40 @@ +/** + * @author Felix Morgner (felix.morgner@gmail.com) + * @copyright Copyright (c) 2025 + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + +#include "adwaitamm/private/aboutdialog_p.hpp" + +#include "adwaitamm/aboutdialog.hpp" + +#include <glibmm/class.h> +#include <glibmm/objectbase.h> + +#include <gtkmm/object.h> + +#include <adwaita.h> + +namespace Adwaita +{ + auto AboutDialog_Class::init() -> Glib::Class const & + { + if (!gtype_) + { + class_init_func_ = &class_init_function; + gtype_ = adw_about_dialog_get_type(); + } + return *this; + } + + auto AboutDialog_Class::class_init_function(void * gclass, void * data) -> void + { + auto const klass = static_cast<BaseClassType *>(gclass); + CppClassParent::class_init_function(klass, data); + } + + auto AboutDialog_Class::wrap_new(GObject * object) -> Glib::ObjectBase * + { + return Gtk::manage(new AboutDialog(ADW_ABOUT_DIALOG(object))); + } +} // namespace Adwaita
\ No newline at end of file |
