From fd5f30ab0d2f1974afabd58b350ccaca93468404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 20 Sep 2010 14:36:30 +0200 Subject: [PATCH] Use gdk_error_trap_pop_ignore() where appropriate gdk_error_trap_pop() has been marked with G_GNUC_WARN_UNUSED_RESULT, so use gdk_error_trap_pop_ignore() whenever the return value is ignored. --- src/tray/na-tray-child.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tray/na-tray-child.c b/src/tray/na-tray-child.c index 5150bb78e..3041cff9d 100644 --- a/src/tray/na-tray-child.c +++ b/src/tray/na-tray-child.c @@ -251,7 +251,7 @@ na_tray_child_new (GdkScreen *screen, gdk_error_trap_push (); result = XGetWindowAttributes (xdisplay, icon_window, &window_attributes); - gdk_error_trap_pop (); + gdk_error_trap_pop_ignored (); if (!result) /* Window already gone */ return NULL; @@ -437,7 +437,7 @@ na_tray_child_force_redraw (NaTrayChild *child) * since that is asynchronous. */ XSync (xdisplay, False); - gdk_error_trap_pop (); + gdk_error_trap_pop_ignored (); #else /* Hiding and showing is the safe way to do it, but can result in more * flickering. @@ -481,7 +481,7 @@ _get_wmclass (Display *xdisplay, gdk_error_trap_push (); XGetClassHint (xdisplay, xwindow, &ch); - gdk_error_trap_pop (); + gdk_error_trap_pop_ignored (); if (res_class) *res_class = NULL;