mirror of
https://github.com/labwc/labwc.git
synced 2026-04-09 08:21:18 -04:00
tree-wide: use rc.theme instead of server.theme
Having two global pointers to the same struct is redundant.
This commit is contained in:
parent
9550bccef2
commit
d4ad27e636
18 changed files with 46 additions and 52 deletions
|
|
@ -14,7 +14,7 @@ void
|
|||
ssd_extents_create(struct ssd *ssd)
|
||||
{
|
||||
struct view *view = ssd->view;
|
||||
struct theme *theme = server.theme;
|
||||
struct theme *theme = rc.theme;
|
||||
|
||||
int border_width = MAX(0, MAX(rc.resize_minimum_area, theme->border_width));
|
||||
|
||||
|
|
@ -100,7 +100,7 @@ ssd_extents_update(struct ssd *ssd)
|
|||
return;
|
||||
}
|
||||
|
||||
struct theme *theme = server.theme;
|
||||
struct theme *theme = rc.theme;
|
||||
|
||||
int width = view->current.width;
|
||||
int height = view_effective_height(view, /* use_pending */ false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue