X-Git-Url: http://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fcfg.h;h=8b09a67c170ee7df848efdf129714713f8df1e25;hb=de6a2cf11673ad8109b986e7cf24f626ad80df22;hp=b3b79991a62216875b031ffbb9ad71dec4c22495;hpb=ff32cd5473f5c2251dc199a1d48a0b712fd8b3cd;p=psensor.git diff --git a/src/cfg.h b/src/cfg.h index b3b7999..8b09a67 100644 --- a/src/cfg.h +++ b/src/cfg.h @@ -22,10 +22,12 @@ #include "color.h" -#define SENSORLIST_POSITION_RIGHT 0 -#define SENSORLIST_POSITION_LEFT 1 -#define SENSORLIST_POSITION_TOP 2 -#define SENSORLIST_POSITION_BOTTOM 3 +enum sensorlist_position { + SENSORLIST_POSITION_RIGHT, + SENSORLIST_POSITION_LEFT, + SENSORLIST_POSITION_TOP, + SENSORLIST_POSITION_BOTTOM +}; struct config { struct color *graph_bgcolor; @@ -38,7 +40,7 @@ struct config { /* Position of the sensors list table */ - int sensorlist_position; + enum sensorlist_position sensorlist_position; int window_decoration_enabled; int window_keep_below_enabled;