Window finished for now

This commit is contained in:
Pcornat 2024-10-29 18:01:40 +01:00
parent 46ddac37f5
commit d18b92f4bc
Signed by: Pcornat
GPG Key ID: E0326CC678A00BDD
2 changed files with 3 additions and 7 deletions

View File

@ -1,8 +1,7 @@
#include "hello_world.hpp" #include "hello_world.hpp"
#include <gtkmm/box.h> #include <gtkmm/listbox.h>
namespace learn_gtkmm4 { namespace learn_gtkmm4 {
HelloWorld::HelloWorld(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> &builder) : HelloWorld::HelloWorld(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> &builder) :
Gtk::ApplicationWindow(cobject), m_builder(builder) { Gtk::ApplicationWindow(cobject), m_builder(builder) {}
}
} // learn_gtkmm4 } // learn_gtkmm4

View File

@ -1,12 +1,10 @@
#ifndef LEARNGTK4_HELLO_WORLD_HPP #ifndef LEARNGTK4_HELLO_WORLD_HPP
#define LEARNGTK4_HELLO_WORLD_HPP #define LEARNGTK4_HELLO_WORLD_HPP
#include <glibmm/refptr.h>
#include <gtkmm/applicationwindow.h> #include <gtkmm/applicationwindow.h>
#include <gtkmm/builder.h> #include <gtkmm/builder.h>
namespace Gtk {
class Box;
}
namespace learn_gtkmm4 { namespace learn_gtkmm4 {
@ -20,7 +18,6 @@ namespace learn_gtkmm4 {
protected: protected:
Glib::RefPtr<Gtk::Builder> m_builder; Glib::RefPtr<Gtk::Builder> m_builder;
Gtk::Box *m_ui_box{ nullptr };
}; };
} // learn_gtkmm4 } // learn_gtkmm4