[gnome-panel/gtk3] notification-area: Fix creation of tray child objects
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/gtk3] notification-area: Fix creation of tray child objects
- Date: Sat, 22 Jan 2011 15:21:40 +0000 (UTC)
commit 07949e2b4c695d45c710ead42f284dac6b427176
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Sat Jan 22 16:17:53 2011 +0100
notification-area: Fix creation of tray child objects
XGetWindowAttributes() returns 0 when it fails, we were comparing the
result with "Sucess".
applets/notification_area/na-tray-child.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/applets/notification_area/na-tray-child.c b/applets/notification_area/na-tray-child.c
index 15a0c43..4fd9796 100644
--- a/applets/notification_area/na-tray-child.c
+++ b/applets/notification_area/na-tray-child.c
@@ -249,7 +249,7 @@ na_tray_child_new (GdkScreen *screen,
result = XGetWindowAttributes (xdisplay, icon_window,
&window_attributes);
gdk_flush ();
- if (gdk_error_trap_pop () || result != Success)
+ if (gdk_error_trap_pop () || !result)
return NULL;
visual = gdk_x11_screen_lookup_visual (screen,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]