use entire uri pointer

This commit is contained in:
yggverse 2024-09-14 15:05:27 +03:00
parent 5ce90d6e11
commit 4c0cb8c6f0
9 changed files with 28 additions and 26 deletions

View file

@ -4,9 +4,9 @@
using namespace app::browser::main::tab::page::content::text;
Gemini::Gemini(
const Glib::ustring & REQUEST,
const Glib::ustring & GEMTEXT,
Glib::ustring & title
Glib::ustring & title,
GUri * uri
) : Gtk::Viewport( // add scrolled window features to childs
NULL,
NULL
@ -18,9 +18,9 @@ Gemini::Gemini(
set_child(
* Gtk::make_managed<gemini::Reader>(
REQUEST,
GEMTEXT,
title
title,
uri
)
);
}

View file

@ -14,9 +14,9 @@ namespace app::browser::main::tab::page::content::text
public:
Gemini(
const Glib::ustring & REQUEST,
const Glib::ustring & GEMTEXT,
Glib::ustring & title
Glib::ustring & title,
GUri * uri
);
};
}

View file

@ -3,9 +3,9 @@
using namespace app::browser::main::tab::page::content::text::gemini;
Reader::Reader(
const Glib::ustring & REQUEST,
const Glib::ustring & GEMTEXT,
Glib::ustring & title
Glib::ustring & title,
GUri * base
) {
// Build markup
Glib::ustring markup;
@ -48,7 +48,9 @@ Reader::Reader(
{
markup.append(
Make::link(
REQUEST,
g_uri_to_string(
base
),
address,
date,
alt

View file

@ -48,7 +48,7 @@ namespace app::browser::main::tab::page::content::text::gemini
);
static Glib::ustring link(
const Glib::ustring & REQUEST,
const Glib::ustring & BASE,
const Glib::ustring & ADDRESS,
const Glib::ustring & DATE,
const Glib::ustring & ALT
@ -69,9 +69,9 @@ namespace app::browser::main::tab::page::content::text::gemini
public:
Reader(
const Glib::ustring & REQUEST,
const Glib::ustring & GEMTEXT,
Glib::ustring & title
Glib::ustring & title,
GUri * uri
);
};
}