mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
WPrefs: Added a few missing const attributes
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
c7e6b3a18f
commit
c16c1a32af
@@ -91,9 +91,9 @@ typedef struct _Panel {
|
||||
|
||||
#define ICON_FILE "fonts"
|
||||
|
||||
static struct {
|
||||
char *option;
|
||||
char *label;
|
||||
static const struct {
|
||||
const char *option;
|
||||
const char *label;
|
||||
} fontOptions[] = {
|
||||
{
|
||||
"WindowTitleFont", N_("Window Title")}, {
|
||||
@@ -104,7 +104,7 @@ static struct {
|
||||
"LargeDisplayFont", N_("Desktop Caption")}, {
|
||||
NULL, NULL},};
|
||||
|
||||
static char *standardSizes[] = {
|
||||
static const char *standardSizes[] = {
|
||||
"6",
|
||||
"8",
|
||||
"9",
|
||||
@@ -128,9 +128,9 @@ static char *standardSizes[] = {
|
||||
NULL
|
||||
};
|
||||
|
||||
static struct {
|
||||
static const struct {
|
||||
int weight;
|
||||
char *name;
|
||||
const char *name;
|
||||
} fontWeights[] = {
|
||||
{
|
||||
FC_WEIGHT_THIN, "Thin"}, {
|
||||
@@ -146,9 +146,9 @@ static struct {
|
||||
0, NULL}
|
||||
};
|
||||
|
||||
static struct {
|
||||
static const struct {
|
||||
int slant;
|
||||
char *name;
|
||||
const char *name;
|
||||
} fontSlants[] = {
|
||||
{
|
||||
FC_SLANT_ROMAN, ""}, /*"Roman"}, */
|
||||
@@ -158,9 +158,9 @@ static struct {
|
||||
0, NULL}
|
||||
};
|
||||
|
||||
static struct {
|
||||
static const struct {
|
||||
int width;
|
||||
char *name;
|
||||
const char *name;
|
||||
} fontWidths[] = {
|
||||
{
|
||||
FC_WIDTH_ULTRACONDENSED, "UltraCondensed"}, {
|
||||
@@ -371,7 +371,7 @@ static void selectedFamily(WMWidget * w, void *data)
|
||||
WMClearList(panel->styleL);
|
||||
for (i = 0; i < family->stylen; i++) {
|
||||
int j;
|
||||
char *weight = "", *slant = "", *width = "";
|
||||
const char *weight = "", *slant = "", *width = "";
|
||||
WMListItem *item;
|
||||
|
||||
for (j = 0; fontWeights[j].name; j++)
|
||||
|
||||
@@ -77,7 +77,7 @@ typedef struct _Panel {
|
||||
|
||||
#define THUMB_SIZE 16
|
||||
|
||||
static char *placements[] = {
|
||||
static const char *placements[] = {
|
||||
"auto",
|
||||
"random",
|
||||
"manual",
|
||||
|
||||
Reference in New Issue
Block a user