From 031445743c930653bff2f2fa49c0f8e43846962f Mon Sep 17 00:00:00 2001 From: Pcornat Date: Wed, 18 Dec 2024 22:53:32 +0100 Subject: [PATCH] Adding a Builder as a field (app_builder) --- app_win_2_back.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app_win_2_back.hpp b/app_win_2_back.hpp index f7693c6..fdb5d21 100644 --- a/app_win_2_back.hpp +++ b/app_win_2_back.hpp @@ -9,11 +9,11 @@ namespace learn_gtkmm4 { } namespace Gtk { + class Builder; class Switch; } namespace gui_to_app { - class AppWin2Back final : public Gtk::Application { public: ~AppWin2Back() noexcept final = default; @@ -30,6 +30,7 @@ namespace gui_to_app { private: void on_quit() noexcept; + Glib::RefPtr app_builder; learn_gtkmm4::HelloWorld *main_window{ nullptr }; Gtk::Switch *sword_switch{ nullptr }; Gtk::Switch *lance_switch{ nullptr }; @@ -46,7 +47,6 @@ namespace gui_to_app { Gtk::Switch *rock_kit_switch{ nullptr }; Gtk::Switch *sack_switch{ nullptr }; }; - } // gui_to_app #endif //LEARNGTK4_APP_WIN_2_BACK_HPP