Browse Source

init header buttons

CPP-GTK4
yggverse 4 months ago
parent
commit
1d4c640def
  1. 14
      src/app/browser.cpp
  2. 15
      src/app/browser.h

14
src/app/browser.cpp

@ -21,6 +21,20 @@ Browser::Header::Header()
); );
} }
Browser::Header::Menu::Menu()
{
set_tooltip_text(
TOOLTIP
);
}
Browser::Header::Tab::Tab()
{
set_tooltip_text(
TOOLTIP
);
}
Browser::Container::Container() Browser::Container::Container()
{ {
set_scrollable( set_scrollable(

15
src/app/browser.h

@ -3,6 +3,7 @@
#include <gtkmm/window.h> #include <gtkmm/window.h>
#include <gtkmm/headerbar.h> #include <gtkmm/headerbar.h>
#include <gtkmm/menubutton.h>
#include <gtkmm/notebook.h> #include <gtkmm/notebook.h>
namespace app namespace app
@ -24,6 +25,20 @@ namespace app
const bool SHOW_TITLE_BUTTONS = true; const bool SHOW_TITLE_BUTTONS = true;
Header(); Header();
class Menu : public Gtk::MenuButton
{
const Glib::ustring TOOLTIP = "Menu";
Menu();
};
class Tab : public Gtk::MenuButton
{
const Glib::ustring TOOLTIP = "New tab";
Tab();
};
}; };
class Container : Gtk::Notebook class Container : Gtk::Notebook

Loading…
Cancel
Save