summaryrefslogtreecommitdiff
path: root/trashapplet/src/xstuff.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-12-17 16:03:47 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-17 16:03:47 +0100
commit2c985fd3b3a1690a5734bfc923a72bd4ee7381bd (patch)
treeec5f6849c934f9158f274b9fe01ce039b41d7644 /trashapplet/src/xstuff.c
parentd916ca590d2d325575d197ff2227c3d0df915cd5 (diff)
downloadmate-applets-2c985fd3b3a1690a5734bfc923a72bd4ee7381bd.tar.bz2
mate-applets-2c985fd3b3a1690a5734bfc923a72bd4ee7381bd.tar.xz
GTK3 trash: don't use deprecated gdk_error_trap_pop + GtkMisc
Diffstat (limited to 'trashapplet/src/xstuff.c')
-rw-r--r--trashapplet/src/xstuff.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/trashapplet/src/xstuff.c b/trashapplet/src/xstuff.c
index 62f7c6bc..20c97f6a 100644
--- a/trashapplet/src/xstuff.c
+++ b/trashapplet/src/xstuff.c
@@ -250,8 +250,12 @@ xstuff_set_pos_size (GdkWindow *window, int x, int y, int w, int h)
gdk_window_move_resize (window, x, y, w, h);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gdk_error_trap_pop_ignored ();
+#else
gdk_flush ();
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));