mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
decorations: add SetDecorations action
This commit is contained in:
parent
e2590f10fd
commit
41a3b68846
6 changed files with 62 additions and 0 deletions
11
src/view.c
11
src/view.c
|
|
@ -1249,6 +1249,17 @@ view_wants_decorations(struct view *view)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
view_set_decorations(struct view *view, enum ssd_mode mode, bool force_ssd)
|
||||
{
|
||||
assert(view);
|
||||
|
||||
if (force_ssd || !view_wants_decorations(view)
|
||||
|| mode < view_get_ssd_mode(view)) {
|
||||
view_set_ssd_mode(view, mode);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
view_toggle_decorations(struct view *view)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue