Skip to content
Permalink
Browse files

errors.c: avoid deprecated 'gdk_error_trap...' functions:

avoid deprecated:

gdk_error_trap_push
gdk_error_trap_pop_ignored
gdk_error_trap_pop
  • Loading branch information...
sc0w committed Jan 5, 2019
1 parent 898e941 commit b4dcd38a04c6ab44da5d8ac63b386419c9bda7a4
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/core/errors.c
@@ -28,31 +28,32 @@
#include <errno.h>
#include <stdlib.h>
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
#include <gtk/gtk.h>

void
meta_error_trap_push (MetaDisplay *display)
{
gdk_error_trap_push ();
gdk_x11_display_error_trap_push (gdk_x11_lookup_xdisplay (meta_display_get_xdisplay (display)));
}

void
meta_error_trap_pop (MetaDisplay *display,
gboolean last_request_was_roundtrip)
{
gdk_error_trap_pop_ignored ();
gdk_x11_display_error_trap_pop_ignored (gdk_x11_lookup_xdisplay (meta_display_get_xdisplay (display)));
}

void
meta_error_trap_push_with_return (MetaDisplay *display)
{
gdk_error_trap_push ();
gdk_x11_display_error_trap_push (gdk_x11_lookup_xdisplay (meta_display_get_xdisplay (display)));
}

int
meta_error_trap_pop_with_return (MetaDisplay *display,
gboolean last_request_was_roundtrip)
{
return gdk_error_trap_pop ();
return gdk_x11_display_error_trap_pop (gdk_x11_lookup_xdisplay (meta_display_get_xdisplay (display)));
}

0 comments on commit b4dcd38

Please sign in to comment.
You can’t perform that action at this time.