[gnome-shell] Use gdk_error_trap_pop_ignore() where appropriate



commit fd5f30ab0d2f1974afabd58b350ccaca93468404
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Sep 20 14:36:30 2010 +0200

    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 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tray/na-tray-child.c b/src/tray/na-tray-child.c
index 5150bb7..3041cff 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]