mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 17:20:08 +00:00
48 lines
793 B
C++
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
|
|
);
|
|
} |