mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
view: Add view_reload_ssd()
Gather related logic from `reload_config_and_theme()` in `server.c` and `ssd_reload()` in `ssd.c` into a new function, `view_reload_ssd()`. Also drop the `view->mapped` check since we want to update any view that has SSD nodes created, mapped or not.
This commit is contained in:
parent
b150e11cd3
commit
ac9228e7f8
5 changed files with 12 additions and 16 deletions
|
|
@ -191,16 +191,6 @@ ssd_update_geometry(struct view *view)
|
|||
view->ssd.state.y = view->y;
|
||||
}
|
||||
|
||||
void ssd_reload(struct view *view)
|
||||
{
|
||||
if (!view->ssd.tree) {
|
||||
return;
|
||||
}
|
||||
|
||||
ssd_destroy(view);
|
||||
ssd_create(view);
|
||||
}
|
||||
|
||||
void
|
||||
ssd_destroy(struct view *view)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue