Browse Source

add page subtitle support

CPP-GTK4
yggverse 3 months ago
parent
commit
9be94979b9
  1. 2
      src/app/browser/main/tab/page.cpp
  2. 2
      src/app/browser/main/tab/page.hpp

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

@ -7,10 +7,12 @@ using namespace app::browser::main::tab;
Page::Page( Page::Page(
const Glib::ustring & TITLE, const Glib::ustring & TITLE,
const Glib::ustring & SUBTITLE,
const Glib::ustring & REQUEST const Glib::ustring & REQUEST
) { ) {
// Init extras // Init extras
title = TITLE; title = TITLE;
subtitle = SUBTITLE;
// Init container // Init container
set_orientation( set_orientation(

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

@ -28,6 +28,7 @@ namespace app::browser::main::tab
char buffer[0xfffff]; // 1Mb char buffer[0xfffff]; // 1Mb
Glib::ustring title; Glib::ustring title;
Glib::ustring subtitle;
Glib::RefPtr<Gio::SocketClient> GioSocketClient_RefPtr; Glib::RefPtr<Gio::SocketClient> GioSocketClient_RefPtr;
Glib::RefPtr<Gio::SocketConnection> GioSocketConnection_RefPtr; Glib::RefPtr<Gio::SocketConnection> GioSocketConnection_RefPtr;
@ -40,6 +41,7 @@ namespace app::browser::main::tab
Page( Page(
const Glib::ustring & TITLE, const Glib::ustring & TITLE,
const Glib::ustring & SUBTITLE = "",
const Glib::ustring & REQUEST = "" const Glib::ustring & REQUEST = ""
); );

Loading…
Cancel
Save