Fix enums
This commit is contained in:
parent
1c69a0ec9c
commit
a6b37e8b7e
@ -84,7 +84,7 @@ config_bars(void)
|
|||||||
struct conf_sec *sec, **ks;
|
struct conf_sec *sec, **ks;
|
||||||
int screenid;
|
int screenid;
|
||||||
char *elem;
|
char *elem;
|
||||||
Barpos pos = BarTop;
|
enum barpos pos = BarTop;
|
||||||
|
|
||||||
/* [bars] */
|
/* [bars] */
|
||||||
sec = fetch_section_first(NULL, "bars");
|
sec = fetch_section_first(NULL, "bars");
|
||||||
|
|||||||
@ -168,7 +168,7 @@ infobar_elem_remove(struct element *e)
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct infobar*
|
struct infobar*
|
||||||
infobar_new(struct screen *s, struct theme *theme, Barpos pos, const char *elem)
|
infobar_new(struct screen *s, struct theme *theme, enum barpos pos, const char *elem)
|
||||||
{
|
{
|
||||||
bool map;
|
bool map;
|
||||||
struct infobar *i = (struct infobar*)xcalloc(1, sizeof(struct infobar));
|
struct infobar *i = (struct infobar*)xcalloc(1, sizeof(struct infobar));
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
enum { ElemTag = 0, ElemLayout, ElemSelbar, ElemStatus, ElemCustom, ElemLast };
|
enum { ElemTag = 0, ElemLayout, ElemSelbar, ElemStatus, ElemCustom, ElemLast };
|
||||||
|
|
||||||
struct infobar *infobar_new(struct screen *s, struct theme *theme, Barpos pos, const char *elem);
|
struct infobar *infobar_new(struct screen *s, struct theme *theme, enum barpos pos, const char *elem);
|
||||||
void infobar_elem_update(struct infobar *i);
|
void infobar_elem_update(struct infobar *i);
|
||||||
void infobar_refresh(struct infobar *i);
|
void infobar_refresh(struct infobar *i);
|
||||||
void infobar_remove(struct infobar *i);
|
void infobar_remove(struct infobar *i);
|
||||||
@ -32,7 +32,7 @@ infobar_elem_placement(struct element *e)
|
|||||||
|
|
||||||
/* Bars placement management and usable space management */
|
/* Bars placement management and usable space management */
|
||||||
static inline bool
|
static inline bool
|
||||||
infobar_placement(struct infobar *i, Barpos p)
|
infobar_placement(struct infobar *i, enum barpos p)
|
||||||
{
|
{
|
||||||
i->pos = p;
|
i->pos = p;
|
||||||
i->geo = i->screen->ugeo;
|
i->geo = i->screen->ugeo;
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
;/*
|
/*
|
||||||
* wmfs2 by Martin Duquesnoy <xorg62@gmail.com> { for(i = 2011; i < 2111; ++i) ©(i); }
|
* wmfs2 by Martin Duquesnoy <xorg62@gmail.com> { for(i = 2011; i < 2111; ++i) ©(i); }
|
||||||
* For license, see COPYING.
|
* For license, see COPYING.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user