mirror of
https://github.com/labwc/labwc.git
synced 2025-11-06 13:29:58 -05:00
decorations: add SetDecorations action
This commit is contained in:
parent
e2590f10fd
commit
41a3b68846
6 changed files with 62 additions and 0 deletions
|
|
@ -7,6 +7,7 @@
|
|||
*/
|
||||
|
||||
#include <assert.h>
|
||||
#include <strings.h>
|
||||
#include "common/mem.h"
|
||||
#include "common/scene-helpers.h"
|
||||
#include "labwc.h"
|
||||
|
|
@ -344,6 +345,21 @@ ssd_part_contains(enum ssd_part_type whole, enum ssd_part_type candidate)
|
|||
return false;
|
||||
}
|
||||
|
||||
enum ssd_mode
|
||||
ssd_mode_parse(const char *mode)
|
||||
{
|
||||
if (!mode) {
|
||||
return LAB_SSD_MODE_FULL;
|
||||
}
|
||||
if (!strcasecmp(mode, "none")) {
|
||||
return LAB_SSD_MODE_NONE;
|
||||
} else if (!strcasecmp(mode, "border")) {
|
||||
return LAB_SSD_MODE_BORDER;
|
||||
} else {
|
||||
return LAB_SSD_MODE_FULL;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ssd_set_active(struct ssd *ssd, bool active)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue