[gtk+/gtk-2-16] Silence the conversion from xatom to atom too
- From: Matthias Clasen <matthiasc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-16] Silence the conversion from xatom to atom too
- Date: Sat, 29 Aug 2009 03:41:10 +0000 (UTC)
commit 31f94ca1cf423a317e4e26e3ead3a4fa89c22521
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 c415dee..c1831f5 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]