[gtk+] gtk: Fix warnings for dnd code without XInput



commit ac6c6b03d9fcaadfa52f64c23ca8ca4e0a5e669e
Author: Benjamin Otte <otte redhat com>
Date:   Fri Feb 11 23:53:48 2011 +0100

    gtk: Fix warnings for dnd code without XInput

 gtk/gtkdnd.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index f75b2f5..15128c8 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -465,7 +465,7 @@ grab_dnd_keys (GtkWidget *widget,
     }
 
   gdk_flush ();
-  gdk_error_trap_pop ();
+  gdk_error_trap_pop_ignored ();
 
   gdk_window_add_filter (NULL, root_key_filter, (gpointer) GDK_WINDOW_XID (window));
 }
@@ -495,7 +495,7 @@ ungrab_dnd_keys (GtkWidget *widget,
     }
 
   gdk_flush ();
-  gdk_error_trap_pop ();
+  gdk_error_trap_pop_ignored ();
 }
 
 #else /* GDK_WINDOWING_X11 && !XINPUT_2 */



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