X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fconfig.c;h=3a5a1c60d4ec79ceb76be0b437b7b76aa75330f4;hb=fdf4265a13f5aacc87b4bdf7ae851505eff780a6;hp=a6114b4768b571b08a93cd019c78e898c1a9e717;hpb=6cebd34855d6e29345ca821a17feb82753982e7e;p=chaz%2Fopenbox diff --git a/openbox/config.c b/openbox/config.c index a6114b47..3a5a1c60 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -89,13 +89,12 @@ gboolean config_set(char *name, ConfigValueType type, ConfigValue value) gboolean ret = FALSE; name = g_ascii_strdown(name, -1); - g_message("Setting %s", name); /*g_datalist_foreach(&config_def, print_config, NULL);*/ def = g_datalist_get_data(&config_def, name); if (def == NULL) { - g_message("Invalid config option '%s'", name); + g_warning("Invalid config option '%s'", name); } else { if (def->hasList) { gboolean found = FALSE; @@ -111,10 +110,12 @@ gboolean config_set(char *name, ConfigValueType type, ConfigValue value) } while ((it = it->next)); if (!found) - g_message("Invalid value '%s' for config option '%s'", + g_warning("Invalid value '%s' for config option '%s'", value.string, name); else ret = TRUE; + } else if (type != def->type) { + g_warning("Incorrect type of value for config option '%s'", name); } else ret = TRUE;