From 868bfbcb0347878883b56b787bd1f63fd46c61c8 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 25 Apr 2025 11:56:28 +0200 Subject: adw: perform basic code cleanup --- include/adwaitamm/private/preferencesrow_p.hpp | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'include/adwaitamm/private/preferencesrow_p.hpp') 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 #include -#include - -using AdwPreferencesRow = struct _AdwPreferencesRow; -using AdwPreferencesRowClass = struct _AdwPreferencesRowClass; +#include -namespace Gtk -{ - struct ListBoxRow_Class; -} // namespace Gtk +#define _ADWAITA_INSIDE +#include +#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 -- cgit v1.2.3