Browse Source

add page subtitle support

CPP-GTK4
yggverse 2 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; @@ -7,10 +7,12 @@ using namespace app::browser::main::tab;
Page::Page(
const Glib::ustring & TITLE,
const Glib::ustring & SUBTITLE,
const Glib::ustring & REQUEST
) {
// Init extras
title = TITLE;
subtitle = SUBTITLE;
// Init container
set_orientation(

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

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

Loading…
Cancel
Save