summaryrefslogtreecommitdiff
path: root/mate-panel/xstuff.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2013-11-16 23:00:19 +0100
committerraveit65 <[email protected]>2013-11-16 23:00:19 +0100
commit22dae140b0fcc7050c524ff6785673b5eee59c2b (patch)
tree8c15d5fee1941b34cfdb13452c5c77ec550e071f /mate-panel/xstuff.c
parent6baad9dafc848b65cc469e03ea12388d98db9cd1 (diff)
downloadmate-panel-22dae140b0fcc7050c524ff6785673b5eee59c2b.tar.bz2
mate-panel-22dae140b0fcc7050c524ff6785673b5eee59c2b.tar.xz
GTK3: Fix compile warning by using gdk_error_trap_pop_ignored()
Diffstat (limited to 'mate-panel/xstuff.c')
-rw-r--r--mate-panel/xstuff.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mate-panel/xstuff.c b/mate-panel/xstuff.c
index 2b54e293..d31f6d97 100644
--- a/mate-panel/xstuff.c
+++ b/mate-panel/xstuff.c
@@ -225,7 +225,11 @@ xstuff_set_pos_size (GdkWindow *window, int x, int y, int w, int h)
gdk_window_move_resize (window, x, y, w, h);
gdk_flush ();
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gdk_error_trap_pop_ignored ();
+#else
gdk_error_trap_pop ();
+#endif
g_object_set_data (G_OBJECT (window), "xstuff-cached-x", GINT_TO_POINTER (x));
g_object_set_data (G_OBJECT (window), "xstuff-cached-y", GINT_TO_POINTER (y));