[gtk+] Silence the conversion from xatom to atom too
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] Silence the conversion from xatom to atom too
- Date: Thu, 20 Aug 2009 22:08:16 +0000 (UTC)
commit e0a1e78a5a8d20b35db103ff230a456e48a50c58
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Aug 20 18:06:35 2009 -0400
Silence the conversion from xatom to atom too
gdk/x11/gdkproperty-x11.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gdk/x11/gdkproperty-x11.c b/gdk/x11/gdkproperty-x11.c
index 181b13e..b0ce21b 100644
--- a/gdk/x11/gdkproperty-x11.c
+++ b/gdk/x11/gdkproperty-x11.c
@@ -296,7 +296,9 @@ gdk_x11_xatom_to_atom_for_display (GdkDisplay *display,
GdkAtom virtual_atom = GDK_NONE;
g_return_val_if_fail (GDK_IS_DISPLAY (display), GDK_NONE);
- g_return_val_if_fail (xatom != None, GDK_NONE);
+
+ if (xatom == None)
+ return GDK_NONE;
if (display->closed)
return GDK_NONE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]