use local gtk show initiation instead of show_all method

This commit is contained in:
yggverse 2024-07-08 00:04:49 +03:00
parent 5fda126ea9
commit 12a1473d8c
28 changed files with 79 additions and 10 deletions

View file

@ -49,6 +49,9 @@ class Container
true,
0
);
// Render
$this->gtk->show();
}
public function refresh()

View file

@ -60,6 +60,9 @@ class Content
$this->viewport->gtk
);
// Render
$this->gtk->show();
// Do initial search
$this->search();
}

View file

@ -66,7 +66,10 @@ class Table
$this->data->gtk
);
// Connect events
// Render
$this->gtk->show();
// Init events
$this->gtk->connect(
'row-activated',
function()

View file

@ -19,5 +19,8 @@ class Viewport
// Init viewport
$this->gtk = new \GtkViewport;
// Render
$this->gtk->show();
}
}

View file

@ -94,6 +94,9 @@ class Navbar
$this->gtk->add(
$this->search->gtk
);
// Render
$this->gtk->show();
}
public function refresh(): void

View file

@ -27,5 +27,8 @@ class Header
$this->gtk->set_subtitle(
$this->_subtitle
);
// Render
$this->gtk->show();
}
}