mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
group back/forward buttons
This commit is contained in:
parent
42d65d4a50
commit
9fafea4da6
1 changed files with 31 additions and 13 deletions
|
|
@ -41,24 +41,42 @@ class Navigation
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($config->interface->window->navigation->button->back)
|
if ($config->interface->window->navigation->button->back || $config->interface->window->navigation->button->forward)
|
||||||
{
|
{
|
||||||
$this->back = new \Yggverse\Yoda\Button\Back();
|
$boxBackForward = new \GtkButtonBox(
|
||||||
|
\GtkOrientation::HORIZONTAL
|
||||||
$this->box->pack_start(
|
|
||||||
$this->back->button,
|
|
||||||
false,
|
|
||||||
false,
|
|
||||||
8
|
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
if ($config->interface->window->navigation->button->forward)
|
$boxBackForward->set_layout(
|
||||||
{
|
\GtkButtonBoxStyle::EXPAND
|
||||||
$this->forward = new \Yggverse\Yoda\Button\Forward();
|
);
|
||||||
|
|
||||||
|
if ($config->interface->window->navigation->button->back)
|
||||||
|
{
|
||||||
|
$this->back = new \Yggverse\Yoda\Button\Back();
|
||||||
|
|
||||||
|
$boxBackForward->pack_start(
|
||||||
|
$this->back->button,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
0
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($config->interface->window->navigation->button->forward)
|
||||||
|
{
|
||||||
|
$this->forward = new \Yggverse\Yoda\Button\Forward();
|
||||||
|
|
||||||
|
$boxBackForward->pack_end(
|
||||||
|
$this->forward->button,
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
0
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$this->box->pack_start(
|
$this->box->pack_start(
|
||||||
$this->forward->button,
|
$boxBackForward,
|
||||||
false,
|
false,
|
||||||
false,
|
false,
|
||||||
8
|
8
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue