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"
|
#define ICON_FILE "fonts"
|
||||||
|
|
||||||
static struct {
|
static const struct {
|
||||||
char *option;
|
const char *option;
|
||||||
char *label;
|
const char *label;
|
||||||
} fontOptions[] = {
|
} fontOptions[] = {
|
||||||
{
|
{
|
||||||
"WindowTitleFont", N_("Window Title")}, {
|
"WindowTitleFont", N_("Window Title")}, {
|
||||||
@@ -104,7 +104,7 @@ static struct {
|
|||||||
"LargeDisplayFont", N_("Desktop Caption")}, {
|
"LargeDisplayFont", N_("Desktop Caption")}, {
|
||||||
NULL, NULL},};
|
NULL, NULL},};
|
||||||
|
|
||||||
static char *standardSizes[] = {
|
static const char *standardSizes[] = {
|
||||||
"6",
|
"6",
|
||||||
"8",
|
"8",
|
||||||
"9",
|
"9",
|
||||||
@@ -128,9 +128,9 @@ static char *standardSizes[] = {
|
|||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct {
|
static const struct {
|
||||||
int weight;
|
int weight;
|
||||||
char *name;
|
const char *name;
|
||||||
} fontWeights[] = {
|
} fontWeights[] = {
|
||||||
{
|
{
|
||||||
FC_WEIGHT_THIN, "Thin"}, {
|
FC_WEIGHT_THIN, "Thin"}, {
|
||||||
@@ -146,9 +146,9 @@ static struct {
|
|||||||
0, NULL}
|
0, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct {
|
static const struct {
|
||||||
int slant;
|
int slant;
|
||||||
char *name;
|
const char *name;
|
||||||
} fontSlants[] = {
|
} fontSlants[] = {
|
||||||
{
|
{
|
||||||
FC_SLANT_ROMAN, ""}, /*"Roman"}, */
|
FC_SLANT_ROMAN, ""}, /*"Roman"}, */
|
||||||
@@ -158,9 +158,9 @@ static struct {
|
|||||||
0, NULL}
|
0, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct {
|
static const struct {
|
||||||
int width;
|
int width;
|
||||||
char *name;
|
const char *name;
|
||||||
} fontWidths[] = {
|
} fontWidths[] = {
|
||||||
{
|
{
|
||||||
FC_WIDTH_ULTRACONDENSED, "UltraCondensed"}, {
|
FC_WIDTH_ULTRACONDENSED, "UltraCondensed"}, {
|
||||||
@@ -371,7 +371,7 @@ static void selectedFamily(WMWidget * w, void *data)
|
|||||||
WMClearList(panel->styleL);
|
WMClearList(panel->styleL);
|
||||||
for (i = 0; i < family->stylen; i++) {
|
for (i = 0; i < family->stylen; i++) {
|
||||||
int j;
|
int j;
|
||||||
char *weight = "", *slant = "", *width = "";
|
const char *weight = "", *slant = "", *width = "";
|
||||||
WMListItem *item;
|
WMListItem *item;
|
||||||
|
|
||||||
for (j = 0; fontWeights[j].name; j++)
|
for (j = 0; fontWeights[j].name; j++)
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ typedef struct _Panel {
|
|||||||
|
|
||||||
#define THUMB_SIZE 16
|
#define THUMB_SIZE 16
|
||||||
|
|
||||||
static char *placements[] = {
|
static const char *placements[] = {
|
||||||
"auto",
|
"auto",
|
||||||
"random",
|
"random",
|
||||||
"manual",
|
"manual",
|
||||||
|
|||||||
Reference in New Issue
Block a user