[gtk+] x11: Warning improvements to xsettings code
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] x11: Warning improvements to xsettings code
- Date: Tue, 19 Feb 2013 13:49:03 +0000 (UTC)
commit 8596142336dd8e6cdc74d90b68ca7f06110393aa
Author: Benjamin Otte <otte redhat com>
Date: Fri Feb 15 19:18:11 2013 +0100
x11: Warning improvements to xsettings code
... and using g_warning() instead of fprintf()
gdk/x11/xsettings-client.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/x11/xsettings-client.c b/gdk/x11/xsettings-client.c
index 633be3c..065b12f 100644
--- a/gdk/x11/xsettings-client.c
+++ b/gdk/x11/xsettings-client.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]