Browse Source

init header constructor, update data types

CPP-GTK4
yggverse 4 months ago
parent
commit
56c63e73c7
  1. 7
      src/app/browser.cpp
  2. 10
      src/app/browser.h

7
src/app/browser.cpp

@ -12,4 +12,11 @@ Browser::Browser()
WIDTH, WIDTH,
HEIGHT HEIGHT
); );
}
Browser::Header::Header()
{
set_show_title_buttons(
SHOW_TITLE_BUTTONS
);
} }

10
src/app/browser.h

@ -11,15 +11,19 @@ namespace app
{ {
public: public:
const char* TITLE = "Basic application"; const Glib::ustring TITLE = "Basic application";
const guint WIDTH = 640; const int WIDTH = 640;
const guint HEIGHT = 480; const int HEIGHT = 480;
Browser(); Browser();
class Header : Gtk::HeaderBar class Header : Gtk::HeaderBar
{ {
public:
const bool SHOW_TITLE_BUTTONS = true;
Header();
}; };
class Container : Gtk::Notebook class Container : Gtk::Notebook

Loading…
Cancel
Save