#pragma once #include class MyWin : public Gtk::Window{ public: static MyWin * create(); MyWin(BaseObjectType *cobject,const Glib::RefPtr& builder); private: //Child Widgets Glib::RefPtr ref_builder; Glib::RefPtr m_settings; Gtk::Button* btnprefs; Gtk::Overlay* overlay; Gtk::Image background; Gtk::Button btnback; //Signal Handlers void btnprefs_clicked(); }; static inline void on_hide_window(Gtk::Window* window){ delete window; }