From e0b53e79cb640bbfb8d281238af9f0e02d17403b Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 4 Apr 2025 07:18:13 +0200 Subject: adw: rename namespace to Adwaita --- adw/include/adwaitamm/actionrow.hpp | 10 +++++----- adw/include/adwaitamm/application.hpp | 6 +++--- adw/include/adwaitamm/applicationwindow.hpp | 6 +++--- adw/include/adwaitamm/breakpoint.hpp | 6 +++--- adw/include/adwaitamm/dialog.hpp | 6 +++--- adw/include/adwaitamm/helpers/gobj_mixin.hpp | 4 ++-- adw/include/adwaitamm/helpers/properties.hpp | 4 ++-- adw/include/adwaitamm/preferencesdialog.hpp | 12 ++++++------ adw/include/adwaitamm/preferencespage.hpp | 6 +++--- adw/include/adwaitamm/preferencesrow.hpp | 6 +++--- adw/include/adwaitamm/switchrow.hpp | 10 +++++----- adw/include/adwaitamm/toast.hpp | 6 +++--- adw/include/adwaitamm/toastoverlay.hpp | 6 +++--- adw/include/adwaitamm/wrap_init.hpp | 4 ++-- 14 files changed, 46 insertions(+), 46 deletions(-) (limited to 'adw/include/adwaitamm') diff --git a/adw/include/adwaitamm/actionrow.hpp b/adw/include/adwaitamm/actionrow.hpp index 1859048..c7ff6c2 100644 --- a/adw/include/adwaitamm/actionrow.hpp +++ b/adw/include/adwaitamm/actionrow.hpp @@ -19,9 +19,9 @@ using AdwActionRow = struct _AdwActionRow; using AdwActionRowClass = struct _AdwActionRowClass; -namespace turns::adw +namespace Adwaita { - struct ActionRow : adw::PreferencesRow, + struct ActionRow : PreferencesRow, helpers::gobj_mixin { struct Class : Glib::Class @@ -29,7 +29,7 @@ namespace turns::adw using BaseClassParent = AdwPreferencesRowClass; using BaseClassType = AdwActionRowClass; using BaseObjectType = AdwActionRow; - using CppClassParent = adw::PreferencesRow::Class; + using CppClassParent = PreferencesRow::Class; using CppObjectType = ActionRow; auto init() -> Glib::Class const &; @@ -85,11 +85,11 @@ namespace turns::adw explicit ActionRow(BaseObjectType * gobj); }; -} // namespace turns::adw +} // namespace Adwaita namespace Glib { - auto wrap(AdwActionRow * object, bool copy = false) -> turns::adw::ActionRow *; + auto wrap(AdwActionRow * object, bool copy = false) -> Adwaita::ActionRow *; } // namespace Glib #endif \ No newline at end of file diff --git a/adw/include/adwaitamm/application.hpp b/adw/include/adwaitamm/application.hpp index 18f703d..5242d50 100644 --- a/adw/include/adwaitamm/application.hpp +++ b/adw/include/adwaitamm/application.hpp @@ -14,7 +14,7 @@ using AdwApplication = struct _AdwApplication; using AdwApplicationClass = struct _AdwApplicationClass; -namespace turns::adw +namespace Adwaita { struct Application : Gtk::Application, helpers::gobj_mixin @@ -60,11 +60,11 @@ namespace turns::adw private: Glib::Class const & custom_class_init(); }; -} // namespace turns::adw +} // namespace Adwaita namespace Glib { - auto wrap(AdwApplication * object, bool copy = false) -> Glib::RefPtr; + auto wrap(AdwApplication * object, bool copy = false) -> Glib::RefPtr; } // namespace Glib #endif \ No newline at end of file diff --git a/adw/include/adwaitamm/applicationwindow.hpp b/adw/include/adwaitamm/applicationwindow.hpp index a8175df..310795e 100644 --- a/adw/include/adwaitamm/applicationwindow.hpp +++ b/adw/include/adwaitamm/applicationwindow.hpp @@ -14,7 +14,7 @@ using AdwApplicationWindow = struct _AdwApplicationWindow; using AdwApplicationWindowClass = struct _AdwApplicationWindowClass; -namespace turns::adw +namespace Adwaita { struct ApplicationWindow : Gtk::ApplicationWindow, helpers::gobj_mixin @@ -54,11 +54,11 @@ namespace turns::adw explicit ApplicationWindow(Glib::ConstructParams const & params); explicit ApplicationWindow(BaseObjectType * gobj); }; -} // namespace turns::adw +} // namespace Adwaita namespace Glib { - auto wrap(AdwApplicationWindow * object, bool copy = false) -> turns::adw::ApplicationWindow *; + auto wrap(AdwApplicationWindow * object, bool copy = false) -> Adwaita::ApplicationWindow *; } // namespace Glib #endif \ No newline at end of file diff --git a/adw/include/adwaitamm/breakpoint.hpp b/adw/include/adwaitamm/breakpoint.hpp index 8a78abb..db17d27 100644 --- a/adw/include/adwaitamm/breakpoint.hpp +++ b/adw/include/adwaitamm/breakpoint.hpp @@ -19,7 +19,7 @@ #include #undef _ADWAITA_INSIDE -namespace turns::adw +namespace Adwaita { struct BreakpointCondition { @@ -102,11 +102,11 @@ namespace turns::adw explicit Breakpoint(BaseObjectType * gobj); }; -} // namespace turns::adw +} // namespace Adwaita namespace Glib { - auto wrap(AdwBreakpoint * object, bool copy = false) -> Glib::RefPtr; + auto wrap(AdwBreakpoint * object, bool copy = false) -> Glib::RefPtr; } // namespace Glib diff --git a/adw/include/adwaitamm/dialog.hpp b/adw/include/adwaitamm/dialog.hpp index 5be01b9..23a864c 100644 --- a/adw/include/adwaitamm/dialog.hpp +++ b/adw/include/adwaitamm/dialog.hpp @@ -17,7 +17,7 @@ using AdwDialog = struct _AdwDialog; using AdwDialogClass = struct _AdwDialogClass; -namespace turns::adw +namespace Adwaita { struct Dialog_Class; @@ -72,11 +72,11 @@ namespace turns::adw explicit Dialog(Glib::ConstructParams const & params); explicit Dialog(BaseObjectType * gobj); }; -} // namespace turns::adw +} // namespace Adwaita namespace Glib { - auto wrap(AdwDialog * object, bool copy = false) -> turns::adw::Dialog *; + auto wrap(AdwDialog * object, bool copy = false) -> Adwaita::Dialog *; } // namespace Glib #endif \ No newline at end of file diff --git a/adw/include/adwaitamm/helpers/gobj_mixin.hpp b/adw/include/adwaitamm/helpers/gobj_mixin.hpp index 2a6aa37..fbdaa4e 100644 --- a/adw/include/adwaitamm/helpers/gobj_mixin.hpp +++ b/adw/include/adwaitamm/helpers/gobj_mixin.hpp @@ -5,7 +5,7 @@ #include -namespace turns::adw::helpers +namespace Adwaita::helpers { template @@ -32,6 +32,6 @@ namespace turns::adw::helpers } }; -} // namespace turns::adw::helpers +} // namespace Adwaita::helpers #endif \ No newline at end of file diff --git a/adw/include/adwaitamm/helpers/properties.hpp b/adw/include/adwaitamm/helpers/properties.hpp index 6a7f7aa..fad99d6 100644 --- a/adw/include/adwaitamm/helpers/properties.hpp +++ b/adw/include/adwaitamm/helpers/properties.hpp @@ -6,7 +6,7 @@ #include -namespace turns::adw::helpers +namespace Adwaita::helpers { template @@ -30,6 +30,6 @@ namespace turns::adw::helpers return deduced_property_proxy_t>{&object, property}; } -} // namespace turns::adw::helpers +} // namespace Adwaita::helpers #endif \ No newline at end of file diff --git a/adw/include/adwaitamm/preferencesdialog.hpp b/adw/include/adwaitamm/preferencesdialog.hpp index d57e015..824a683 100644 --- a/adw/include/adwaitamm/preferencesdialog.hpp +++ b/adw/include/adwaitamm/preferencesdialog.hpp @@ -18,11 +18,11 @@ using AdwPreferencesDialog = struct _AdwPreferencesDialog; using AdwPreferencesDialogClass = struct _AdwPreferencesDialogClass; -namespace turns::adw +namespace Adwaita { struct PreferencesDialog_Class; - struct PreferencesDialog : adw::Dialog, + struct PreferencesDialog : Dialog, helpers::gobj_mixin { struct Class : Glib::Class @@ -30,7 +30,7 @@ namespace turns::adw using BaseClassParent = AdwDialogClass; using BaseClassType = AdwPreferencesDialogClass; using BaseObjectType = AdwPreferencesDialog; - using CppClassParent = adw::Dialog::Class; + using CppClassParent = Dialog::Class; using CppObjectType = PreferencesDialog; auto init() -> Glib::Class const &; @@ -56,17 +56,17 @@ namespace turns::adw auto static get_type() -> GType; auto static get_base_type() -> GType; - auto add(adw::PreferencesPage & page) -> void; + auto add(PreferencesPage & page) -> void; protected: explicit PreferencesDialog(Glib::ConstructParams const & params); explicit PreferencesDialog(BaseObjectType * gobj); }; -} // namespace turns::adw +} // namespace Adwaita namespace Glib { - auto wrap(AdwPreferencesDialog * object, bool copy = false) -> turns::adw::PreferencesDialog *; + auto wrap(AdwPreferencesDialog * object, bool copy = false) -> Adwaita::PreferencesDialog *; } // namespace Glib #endif \ No newline at end of file diff --git a/adw/include/adwaitamm/preferencespage.hpp b/adw/include/adwaitamm/preferencespage.hpp index d6c4ca4..7e7e9ed 100644 --- a/adw/include/adwaitamm/preferencespage.hpp +++ b/adw/include/adwaitamm/preferencespage.hpp @@ -16,7 +16,7 @@ using AdwPreferencesPage = struct _AdwPreferencesPage; using AdwPreferencesPageClass = struct _AdwPreferencesPageClass; -namespace turns::adw +namespace Adwaita { struct PreferencesPage : Gtk::Widget, helpers::gobj_mixin @@ -56,11 +56,11 @@ namespace turns::adw explicit PreferencesPage(Glib::ConstructParams const & params); explicit PreferencesPage(BaseObjectType * gobj); }; -} // namespace turns::adw +} // namespace Adwaita namespace Glib { - auto wrap(AdwPreferencesPage * object, bool copy = false) -> turns::adw::PreferencesPage *; + auto wrap(AdwPreferencesPage * object, bool copy = false) -> Adwaita::PreferencesPage *; } // namespace Glib #endif \ No newline at end of file diff --git a/adw/include/adwaitamm/preferencesrow.hpp b/adw/include/adwaitamm/preferencesrow.hpp index f98e125..b4fde1e 100644 --- a/adw/include/adwaitamm/preferencesrow.hpp +++ b/adw/include/adwaitamm/preferencesrow.hpp @@ -17,7 +17,7 @@ using AdwPreferencesRow = struct _AdwPreferencesRow; using AdwPreferencesRowClass = struct _AdwPreferencesRowClass; -namespace turns::adw +namespace Adwaita { struct PreferencesRow : Gtk::ListBoxRow, helpers::gobj_mixin @@ -113,11 +113,11 @@ namespace turns::adw return helpers::make_property_proxy(self, "use-underline"); } -} // namespace turns::adw +} // namespace Adwaita namespace Glib { - auto wrap(AdwPreferencesRow * object, bool copy = false) -> turns::adw::PreferencesRow *; + auto wrap(AdwPreferencesRow * object, bool copy = false) -> Adwaita::PreferencesRow *; } // namespace Glib #endif \ No newline at end of file diff --git a/adw/include/adwaitamm/switchrow.hpp b/adw/include/adwaitamm/switchrow.hpp index c13d534..37e2e05 100644 --- a/adw/include/adwaitamm/switchrow.hpp +++ b/adw/include/adwaitamm/switchrow.hpp @@ -21,9 +21,9 @@ using AdwSwitchRow = struct _AdwSwitchRow; -namespace turns::adw +namespace Adwaita { - struct SwitchRow final : adw::ActionRow, + struct SwitchRow final : ActionRow, helpers::gobj_mixin { struct Class : Glib::Class @@ -31,7 +31,7 @@ namespace turns::adw using BaseClassParent = AdwActionRowClass; using BaseClassType = AdwSwitchRowClass; using BaseObjectType = AdwSwitchRow; - using CppClassParent = adw::ActionRow::Class; + using CppClassParent = ActionRow::Class; using CppObjectType = SwitchRow; auto init() -> Glib::Class const &; @@ -78,11 +78,11 @@ namespace turns::adw return helpers::make_property_proxy(self, "active"); } -} // namespace turns::adw +} // namespace Adwaita namespace Glib { - auto wrap(AdwSwitchRow * object, bool copy = false) -> turns::adw::SwitchRow *; + auto wrap(AdwSwitchRow * object, bool copy = false) -> Adwaita::SwitchRow *; } // namespace Glib #endif \ No newline at end of file diff --git a/adw/include/adwaitamm/toast.hpp b/adw/include/adwaitamm/toast.hpp index 88460f9..4f69c1e 100644 --- a/adw/include/adwaitamm/toast.hpp +++ b/adw/include/adwaitamm/toast.hpp @@ -22,7 +22,7 @@ using AdwToast = struct _AdwToast; -namespace turns::adw +namespace Adwaita { struct Toast final : Glib::Object, helpers::gobj_mixin @@ -101,11 +101,11 @@ namespace turns::adw explicit Toast(BaseObjectType * gobj); }; -} // namespace turns::adw +} // namespace Adwaita namespace Glib { - auto wrap(AdwToast * object, bool copy = false) -> Glib::RefPtr; + auto wrap(AdwToast * object, bool copy = false) -> Glib::RefPtr; } // namespace Glib #endif \ No newline at end of file diff --git a/adw/include/adwaitamm/toastoverlay.hpp b/adw/include/adwaitamm/toastoverlay.hpp index 0ae8bcb..f4d54cb 100644 --- a/adw/include/adwaitamm/toastoverlay.hpp +++ b/adw/include/adwaitamm/toastoverlay.hpp @@ -17,7 +17,7 @@ #include #undef _ADWAITA_INSIDE -namespace turns::adw +namespace Adwaita { struct ToastOverlay final : Gtk::Widget, helpers::gobj_mixin @@ -67,11 +67,11 @@ namespace turns::adw return helpers::make_property_proxy(self, "child"); } -} // namespace turns::adw +} // namespace Adwaita namespace Glib { - auto wrap(AdwToastOverlay * object, bool copy = false) -> turns::adw::ToastOverlay *; + auto wrap(AdwToastOverlay * object, bool copy = false) -> Adwaita::ToastOverlay *; } // namespace Glib #endif \ No newline at end of file diff --git a/adw/include/adwaitamm/wrap_init.hpp b/adw/include/adwaitamm/wrap_init.hpp index 0e22a9b..98e40c3 100644 --- a/adw/include/adwaitamm/wrap_init.hpp +++ b/adw/include/adwaitamm/wrap_init.hpp @@ -1,9 +1,9 @@ #ifndef LIBADWAITAMM_WRAP_INIT_HPP #define LIBADWAITAMM_WRAP_INIT_HPP -namespace turns::adw +namespace Adwaita { auto wrap_init() -> void; -} // namespace turns::adw +} // namespace Adwaita #endif \ No newline at end of file -- cgit v1.2.3