Yoda/src/app/browser/header.cpp
2024-09-08 07:47:39 +03:00

48 lines
793 B
C++

#include "header.hpp"
#include "header/main.hpp"
#include "header/menu.hpp"
#include "header/tab.hpp"
using namespace app::browser;
Header::Header()
{
// Init header bar
set_show_title_buttons(
SHOW_TITLE_BUTTONS
);
// Init menu
headerMenu = Gtk::make_managed<header::Menu>();
pack_start(
* headerMenu
);
// Init tab
headerTab = Gtk::make_managed<header::Tab>();
pack_start(
* headerTab
);
// Init main widget
headerMain = Gtk::make_managed<header::Main>();
set_title_widget(
* headerMain
);
}
void Header::refresh(
const Glib::ustring & TITLE,
const Glib::ustring & SUBTITLE
) {
headerMain->set_title(
TITLE
);
headerMain->set_subtitle(
SUBTITLE
);
}