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() @@ -12,4 +12,11 @@ Browser::Browser()
WIDTH,
HEIGHT
);
}
Browser::Header::Header()
{
set_show_title_buttons(
SHOW_TITLE_BUTTONS
);
}

10
src/app/browser.h

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

Loading…
Cancel
Save