rename append to appendPage

This commit is contained in:
yggverse 2024-07-12 17:38:00 +03:00
parent dd21e45144
commit 11b13ba011
5 changed files with 8 additions and 8 deletions

View file

@ -34,15 +34,15 @@ class Tab
); );
// Init previous session @TODO // Init previous session @TODO
$this->append( $this->appendPage(
'gemini://yggverse.cities.yesterweb.org' 'gemini://yggverse.cities.yesterweb.org'
); );
$this->append( $this->appendPage(
'gemini://tlgs.one' 'gemini://tlgs.one'
); );
$this->append( $this->appendPage(
'nex://nightfall.city' 'nex://nightfall.city'
); );
@ -90,7 +90,7 @@ class Tab
); );
} }
public function append( public function appendPage(
?string $request = null, ?string $request = null,
bool $focus = true bool $focus = true
): void ): void

View file

@ -77,7 +77,7 @@ class Table
// Focus on browser // Focus on browser
// $this->content->container->history->browser->gtk->present(); // $this->content->container->history->browser->gtk->present();
$this->content->container->history->browser->container->tab->append( $this->content->container->history->browser->container->tab->appendPage(
$this->getSelectedUrl() $this->getSelectedUrl()
); );
} }

View file

@ -12,7 +12,7 @@ class Open extends \Yggverse\Yoda\Abstract\Entity\Browser\History\Container\Navb
\GtkButton $entity \GtkButton $entity
): void ): void
{ {
$this->navbar->container->history->browser->container->tab->append( $this->navbar->container->history->browser->container->tab->appendPage(
$this->navbar->container->content->table->getSelectedUrl() $this->navbar->container->content->table->getSelectedUrl()
); );
} }

View file

@ -84,7 +84,7 @@ class Open
{ {
foreach ($dialog->get_filenames() as $filename) foreach ($dialog->get_filenames() as $filename)
{ {
$this->file->menu->browser->container->tab->append( $this->file->menu->browser->container->tab->appendPage(
sprintf( sprintf(
'file://%s', 'file://%s',
$filename $filename

View file

@ -33,7 +33,7 @@ class Add
'activate', 'activate',
function() function()
{ {
$this->tab->menu->browser->container->tab->append(); $this->tab->menu->browser->container->tab->appendPage();
} }
); );
} }