diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-04-25 11:56:28 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-04-25 11:56:28 +0200 |
| commit | 868bfbcb0347878883b56b787bd1f63fd46c61c8 (patch) | |
| tree | a8f5c4f2afb88766bcdf4bf9c765aefd9acf99eb /include/adwaitamm/private/preferencesrow_p.hpp | |
| parent | 2c4e151343828af13b28ec39946b6bf34748c2b3 (diff) | |
| download | libadwaitamm-868bfbcb0347878883b56b787bd1f63fd46c61c8.tar.xz libadwaitamm-868bfbcb0347878883b56b787bd1f63fd46c61c8.zip | |
adw: perform basic code cleanup
Diffstat (limited to 'include/adwaitamm/private/preferencesrow_p.hpp')
| -rw-r--r-- | include/adwaitamm/private/preferencesrow_p.hpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/include/adwaitamm/private/preferencesrow_p.hpp b/include/adwaitamm/private/preferencesrow_p.hpp index be0b25b..fd6c22b 100644 --- a/include/adwaitamm/private/preferencesrow_p.hpp +++ b/include/adwaitamm/private/preferencesrow_p.hpp @@ -1,36 +1,35 @@ +/** + * @author Felix Morgner (felix.morgner@gmail.com) + * @copyright Copyright (c) 2025 + * SPDX-License-Identifier: LGPL-2.1-or-later + */ + #ifndef LIBADWAITAMM_PRIVATE_PREFERENCES_ROW_P_HPP #define LIBADWAITAMM_PRIVATE_PREFERENCES_ROW_P_HPP #include <glibmm/class.h> #include <glibmm/objectbase.h> -#include <gtk/gtk.h> - -using AdwPreferencesRow = struct _AdwPreferencesRow; -using AdwPreferencesRowClass = struct _AdwPreferencesRowClass; +#include <gtkmm/listboxrow.h> -namespace Gtk -{ - struct ListBoxRow_Class; -} // namespace Gtk +#define _ADWAITA_INSIDE +#include <adw-preferences-row.h> +#undef _ADWAITA_INSIDE namespace Adwaita { - struct PreferencesRow; - struct PreferencesRow_Class : Glib::Class { using BaseClassParent = GtkListBoxRowClass; using BaseClassType = AdwPreferencesRowClass; using BaseObjectType = AdwPreferencesRow; using CppClassParent = Gtk::ListBoxRow_Class; - using CppObjectType = PreferencesRow; + using CppObjectType = struct PreferencesRow; auto init() -> Glib::Class const &; auto static class_init_function(void * gclass, void * data) -> void; auto static wrap_new(GObject * object) -> Glib::ObjectBase *; }; - } // namespace Adwaita #endif
\ No newline at end of file |
