mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
use local gtk show initiation instead of show_all method
This commit is contained in:
parent
5fda126ea9
commit
12a1473d8c
28 changed files with 79 additions and 10 deletions
|
|
@ -33,7 +33,7 @@ class Tab
|
|||
'gemini://yggverse.cities.yesterweb.org'
|
||||
);
|
||||
|
||||
// Connect events
|
||||
// Init events
|
||||
$this->gtk->connect(
|
||||
'switch-page',
|
||||
function (
|
||||
|
|
@ -101,6 +101,7 @@ class Tab
|
|||
);
|
||||
}
|
||||
|
||||
$this->gtk->show_all();
|
||||
// Render
|
||||
$this->gtk->show();
|
||||
}
|
||||
}
|
||||
|
|
@ -66,7 +66,7 @@ class Page
|
|||
);
|
||||
|
||||
// Render
|
||||
$this->gtk->show_all();
|
||||
$this->gtk->show();
|
||||
}
|
||||
|
||||
public function refresh(): void
|
||||
|
|
|
|||
|
|
@ -67,6 +67,9 @@ class Content
|
|||
$this->gtk->add(
|
||||
$this->viewport->gtk
|
||||
);
|
||||
|
||||
// Render
|
||||
$this->gtk->show();
|
||||
}
|
||||
|
||||
public function refresh()
|
||||
|
|
|
|||
|
|
@ -54,6 +54,10 @@ class Data
|
|||
0
|
||||
);
|
||||
|
||||
// Render
|
||||
$this->gtk->show();
|
||||
|
||||
// Init events
|
||||
$this->gtk->connect(
|
||||
'activate-link',
|
||||
function(
|
||||
|
|
|
|||
|
|
@ -19,5 +19,8 @@ class Viewport
|
|||
|
||||
// Init viewport
|
||||
$this->gtk = new \GtkViewport;
|
||||
|
||||
// Render
|
||||
$this->gtk->show();
|
||||
}
|
||||
}
|
||||
|
|
@ -94,6 +94,9 @@ class Navbar
|
|||
$this->gtk->add(
|
||||
$this->go->gtk
|
||||
);
|
||||
|
||||
// Render
|
||||
$this->gtk->show();
|
||||
}
|
||||
|
||||
public function refresh()
|
||||
|
|
|
|||
|
|
@ -50,6 +50,9 @@ class History
|
|||
$this->gtk->add(
|
||||
$this->forward->gtk
|
||||
);
|
||||
|
||||
// Render
|
||||
$this->gtk->show();
|
||||
}
|
||||
|
||||
public function add(
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ class Response
|
|||
|
||||
public function show(): void
|
||||
{
|
||||
$this->gtk->show_all();
|
||||
$this->gtk->show();
|
||||
}
|
||||
|
||||
public function hide(): void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue