x11: Warning improvements to xsettings code

... and using g_warning() instead of fprintf()
This commit is contained in:
Benjamin Otte 2013-02-15 19:18:11 +01:00
parent 01be4ce166
commit 8596142336

View File

@ -381,11 +381,11 @@ read_settings (XSettingsClient *client)
{
if (type != xsettings_atom)
{
fprintf (stderr, "Invalid type for XSETTINGS property");
g_warning ("Invalid type for XSETTINGS property: %s", gdk_x11_get_xatom_name_for_display (display, type));
}
else if (format != 8)
{
fprintf (stderr, "Invalid format for XSETTINGS property %d", format);
g_warning ("Invalid format for XSETTINGS property: %d", format);
}
else
client->settings = parse_settings (data, n_items);