|
|
@ -9,6 +9,7 @@ class Navigation |
|
|
|
public \GtkBox $box; |
|
|
|
public \GtkBox $box; |
|
|
|
|
|
|
|
|
|
|
|
public \Yggverse\Yoda\Entry\Address $address; |
|
|
|
public \Yggverse\Yoda\Entry\Address $address; |
|
|
|
|
|
|
|
public \Yggverse\Yoda\Button\Go $go; |
|
|
|
|
|
|
|
|
|
|
|
public function __construct( |
|
|
|
public function __construct( |
|
|
|
string $name = 'boxNavigation' |
|
|
|
string $name = 'boxNavigation' |
|
|
@ -16,7 +17,7 @@ class Navigation |
|
|
|
global $config; |
|
|
|
global $config; |
|
|
|
|
|
|
|
|
|
|
|
$this->box = new \GtkBox( |
|
|
|
$this->box = new \GtkBox( |
|
|
|
\GtkOrientation::VERTICAL |
|
|
|
\GtkOrientation::HORIZONTAL |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$this->box->set_name( |
|
|
|
$this->box->set_name( |
|
|
@ -27,8 +28,23 @@ class Navigation |
|
|
|
$config->homepage |
|
|
|
$config->homepage |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$this->box->add( |
|
|
|
$this->box->pack_start( |
|
|
|
$this->address->entry |
|
|
|
$this->address->entry, |
|
|
|
|
|
|
|
true, |
|
|
|
|
|
|
|
true, |
|
|
|
|
|
|
|
8 |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($config->interface->window->navigation->button->go->enabled) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
$this->go = new \Yggverse\Yoda\Button\Go(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->box->pack_end( |
|
|
|
|
|
|
|
$this->go->button, |
|
|
|
|
|
|
|
false, |
|
|
|
|
|
|
|
false, |
|
|
|
|
|
|
|
8 |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |