Browse Source

rename append to appendPage

PHP-GTK3
yggverse 4 months ago
parent
commit
11b13ba011
  1. 8
      src/Entity/Browser/Container/Tab.php
  2. 2
      src/Entity/Browser/History/Container/Content/Table.php
  3. 2
      src/Entity/Browser/History/Container/Navbar/Open.php
  4. 2
      src/Entity/Browser/Menu/File/Open.php
  5. 2
      src/Entity/Browser/Menu/Tab/Add.php

8
src/Entity/Browser/Container/Tab.php

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

2
src/Entity/Browser/History/Container/Content/Table.php

@ -77,7 +77,7 @@ class Table @@ -77,7 +77,7 @@ class Table
// Focus on browser
// $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()
);
}

2
src/Entity/Browser/History/Container/Navbar/Open.php

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

2
src/Entity/Browser/Menu/File/Open.php

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

2
src/Entity/Browser/Menu/Tab/Add.php

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

Loading…
Cancel
Save