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
|
|
@ -49,6 +49,9 @@ class Container
|
|||
true,
|
||||
0
|
||||
);
|
||||
|
||||
// Render
|
||||
$this->gtk->show();
|
||||
}
|
||||
|
||||
public function refresh()
|
||||
|
|
|
|||
|
|
@ -60,6 +60,9 @@ class Content
|
|||
$this->viewport->gtk
|
||||
);
|
||||
|
||||
// Render
|
||||
$this->gtk->show();
|
||||
|
||||
// Do initial search
|
||||
$this->search();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,7 +66,10 @@ class Table
|
|||
$this->data->gtk
|
||||
);
|
||||
|
||||
// Connect events
|
||||
// Render
|
||||
$this->gtk->show();
|
||||
|
||||
// Init events
|
||||
$this->gtk->connect(
|
||||
'row-activated',
|
||||
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->search->gtk
|
||||
);
|
||||
|
||||
// Render
|
||||
$this->gtk->show();
|
||||
}
|
||||
|
||||
public function refresh(): void
|
||||
|
|
|
|||
|
|
@ -27,5 +27,8 @@ class Header
|
|||
$this->gtk->set_subtitle(
|
||||
$this->_subtitle
|
||||
);
|
||||
|
||||
// Render
|
||||
$this->gtk->show();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue