mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
update page constructor api
This commit is contained in:
parent
b522e6b2a0
commit
f1515f8e99
6 changed files with 18 additions and 27 deletions
|
|
@ -6,28 +6,24 @@ using namespace app::browser::main::tab;
|
|||
|
||||
Page::Page(
|
||||
sqlite3 * db,
|
||||
const MIME & MIME,
|
||||
const Glib::ustring & TITLE,
|
||||
const Glib::ustring & DESCRIPTION,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__UPDATE,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__TAB_PAGE_NAVIGATION_HISTORY_BACK,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__TAB_PAGE_NAVIGATION_HISTORY_FORWARD,
|
||||
const Glib::RefPtr<Gio::SimpleAction> & ACTION__TAB_PAGE_NAVIGATION_RELOAD
|
||||
) {
|
||||
// Init meta
|
||||
mime = MIME;
|
||||
title = TITLE;
|
||||
description = DESCRIPTION;
|
||||
mime = MIME::UNDEFINED;
|
||||
title = _("New page");
|
||||
progress_fraction = 0;
|
||||
|
||||
// Init actions
|
||||
action__update = ACTION__UPDATE;
|
||||
|
||||
// Init database
|
||||
DB::SESSION::init(
|
||||
this->db = db
|
||||
);
|
||||
|
||||
// Init actions
|
||||
action__update = ACTION__UPDATE;
|
||||
|
||||
// Init widget
|
||||
set_orientation(
|
||||
Gtk::Orientation::VERTICAL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue