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
); );
// 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

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

@ -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()
); );
} }

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

@ -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()
); );
} }

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

@ -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

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

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

Loading…
Cancel
Save