Skip to content

Commit

Permalink
mate-desktop-item: replace deprecated gdk_error_trap_push/pop
Browse files Browse the repository at this point in the history
  • Loading branch information
raveit65 committed Aug 15, 2018
1 parent 6ef0247 commit f791ef8
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions libmate-desktop/mate-desktop-item.c
Original file line number Diff line number Diff line change
Expand Up @@ -1473,14 +1473,20 @@ static void
sn_error_trap_push (SnDisplay *display,
Display *xdisplay)
{
gdk_error_trap_push ();
GdkDisplay *gdkdisplay;

gdkdisplay = gdk_display_get_default ();
gdk_x11_display_error_trap_push (gdkdisplay);
}

static void
sn_error_trap_pop (SnDisplay *display,
Display *xdisplay)
{
gdk_error_trap_pop_ignored ();
GdkDisplay *gdkdisplay;

gdkdisplay = gdk_display_get_default ();
gdk_x11_display_error_trap_pop_ignored (gdkdisplay);
}

static char **
Expand Down

0 comments on commit f791ef8

Please sign in to comment.