From 92910b6b2dd0b75bcc99e30eb660742168cef6ce Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Mon, 7 Jan 2019 01:32:05 +0100 Subject: avoid deprecated 'gdk_error_trap_push/pop/pop_ignored' and 'gdk_flush' --- maximus/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'maximus/main.c') diff --git a/maximus/main.c b/maximus/main.c index b271cd2..267cc0a 100644 --- a/maximus/main.c +++ b/maximus/main.c @@ -64,6 +64,7 @@ gint main (gint argc, gchar *argv[]) MaximusApp UNUSED_VARIABLE *app; GOptionContext *context; GError *error = NULL; + GdkDisplay *gdk_display = gdk_display_get_default (); g_set_application_name ("Maximus"); @@ -89,9 +90,9 @@ gint main (gint argc, gchar *argv[]) g_option_context_parse (context, &argc, &argv, NULL); g_option_context_free(context); - gdk_error_trap_push (); + gdk_x11_display_error_trap_push (gdk_display); app = maximus_app_get_default (); - gdk_error_trap_pop_ignored (); + gdk_x11_display_error_trap_pop_ignored (gdk_display); gtk_main (); -- cgit v1.2.1