Browse Source

implement subtitle getter

CPP-GTK4
yggverse 3 months ago
parent
commit
6aeff55cc8
  1. 5
      src/app/browser/main/tab/page.cpp
  2. 8
      src/app/browser/main/tab/page.hpp

5
src/app/browser/main/tab/page.cpp

@ -75,6 +75,11 @@ Glib::ustring Page::get_title() @@ -75,6 +75,11 @@ Glib::ustring Page::get_title()
return title;
}
Glib::ustring Page::get_subtitle()
{
return subtitle;
}
// Actions
void Page::update()
{

8
src/app/browser/main/tab/page.hpp

@ -25,14 +25,17 @@ namespace app::browser::main::tab @@ -25,14 +25,17 @@ namespace app::browser::main::tab
class Page : public Gtk::Box
{
char buffer[0xfffff]; // 1Mb
// Extras
Glib::ustring title;
Glib::ustring subtitle;
// Socket
char buffer[0xfffff]; // 1Mb
Glib::RefPtr<Gio::SocketClient> GioSocketClient_RefPtr;
Glib::RefPtr<Gio::SocketConnection> GioSocketConnection_RefPtr;
// Components
page::Content * pageContent;
page::Navbar * pageNavbar;
page::Progressbar * pageProgressbar;
@ -49,6 +52,7 @@ namespace app::browser::main::tab @@ -49,6 +52,7 @@ namespace app::browser::main::tab
// Getters
Glib::ustring get_title();
Glib::ustring get_subtitle();
// Actions
void update();

Loading…
Cancel
Save