cleanup: remove debug TRACE fprintf lines from defaults.c
This commit is contained in:
parent
90da92c83c
commit
709a8d76fc
|
|
@ -1182,7 +1182,6 @@ void wDefaultsCheckDomains(void* arg)
|
||||||
|
|
||||||
void wReadDefaults(WScreen * scr, WMPropList * new_dict)
|
void wReadDefaults(WScreen * scr, WMPropList * new_dict)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "TRACE: wReadDefaults enter\n");
|
|
||||||
WMPropList *plvalue, *old_value;
|
WMPropList *plvalue, *old_value;
|
||||||
WDefaultEntry *entry;
|
WDefaultEntry *entry;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
@ -1194,7 +1193,6 @@ void wReadDefaults(WScreen * scr, WMPropList * new_dict)
|
||||||
needs_refresh = 0;
|
needs_refresh = 0;
|
||||||
|
|
||||||
for (i = 0; i < wlengthof(optionList); i++) {
|
for (i = 0; i < wlengthof(optionList); i++) {
|
||||||
fprintf(stderr, "TR: r i=%d\n", i);
|
|
||||||
entry = &optionList[i];
|
entry = &optionList[i];
|
||||||
|
|
||||||
if (new_dict)
|
if (new_dict)
|
||||||
|
|
@ -1663,20 +1661,14 @@ static WTexture *parse_texture(WScreen * scr, WMPropList * pl)
|
||||||
int nelem;
|
int nelem;
|
||||||
WTexture *texture = NULL;
|
WTexture *texture = NULL;
|
||||||
|
|
||||||
fprintf(stderr, "TR: pT enter\n");
|
|
||||||
nelem = WMGetPropListItemCount(pl);
|
nelem = WMGetPropListItemCount(pl);
|
||||||
fprintf(stderr, "TR: pT nelem=%d\n", nelem);
|
|
||||||
if (nelem < 1)
|
if (nelem < 1)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
fprintf(stderr, "TR: pT call get[0]\n");
|
elem = WMGetFromPLArray(pl, 0);
|
||||||
elem = WMGetFromPLArray(pl, 0);
|
if (!elem || !WMIsPLString(elem))
|
||||||
fprintf(stderr, "TR: pT got elem=%p\n", (void*)elem);
|
return NULL;
|
||||||
if (!elem || !WMIsPLString(elem))
|
val = WMGetFromPLString(elem);
|
||||||
return NULL;
|
|
||||||
fprintf(stderr, "TR: pT is-string\n");
|
|
||||||
val = WMGetFromPLString(elem);
|
|
||||||
fprintf(stderr, "TR: pT val=%s\n", val);
|
|
||||||
|
|
||||||
if (strcasecmp(val, "solid") == 0) {
|
if (strcasecmp(val, "solid") == 0) {
|
||||||
WMColorRGB color;
|
WMColorRGB color;
|
||||||
|
|
@ -1983,10 +1975,8 @@ static int getTexture(WScreen * scr, WDefaultEntry * entry, WMPropList * value,
|
||||||
again:
|
again:
|
||||||
if (!value)
|
if (!value)
|
||||||
return False;
|
return False;
|
||||||
fprintf(stderr, "TR: gT A\n");
|
Bool _is_arr = WMIsPLArray(value);
|
||||||
Bool _is_arr = WMIsPLArray(value);
|
if (!_is_arr) {
|
||||||
fprintf(stderr, "TR: gT B arr=%d\n", _is_arr);
|
|
||||||
if (!_is_arr) {
|
|
||||||
wwarning(_("Wrong option format for key \"%s\". Should be %s."), entry->key, "Texture");
|
wwarning(_("Wrong option format for key \"%s\". Should be %s."), entry->key, "Texture");
|
||||||
if (changed == 0) {
|
if (changed == 0) {
|
||||||
value = entry->plvalue;
|
value = entry->plvalue;
|
||||||
|
|
@ -2001,9 +1991,7 @@ static int getTexture(WScreen * scr, WDefaultEntry * entry, WMPropList * value,
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "TR: gT D key=%s\n", entry->key);
|
if (strcmp(entry->key, "WidgetColor") == 0 && !changed) {
|
||||||
|
|
||||||
if (strcmp(entry->key, "WidgetColor") == 0 && !changed) {
|
|
||||||
WMPropList *pl;
|
WMPropList *pl;
|
||||||
|
|
||||||
pl = WMGetFromPLArray(value, 0);
|
pl = WMGetFromPLArray(value, 0);
|
||||||
|
|
@ -2019,11 +2007,9 @@ static int getTexture(WScreen * scr, WDefaultEntry * entry, WMPropList * value,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "TR: gT pre-parse\n");
|
texture = parse_texture(scr, value);
|
||||||
texture = parse_texture(scr, value);
|
|
||||||
fprintf(stderr, "TR: gT post-parse\n");
|
|
||||||
|
|
||||||
if (!texture) {
|
if (!texture) {
|
||||||
wwarning(_("Error in texture specification for key \"%s\""), entry->key);
|
wwarning(_("Error in texture specification for key \"%s\""), entry->key);
|
||||||
if (changed == 0) {
|
if (changed == 0) {
|
||||||
value = entry->plvalue;
|
value = entry->plvalue;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue