summaryrefslogtreecommitdiff
path: root/maximus/main.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-01-07 01:32:05 +0100
committerZenWalker <[email protected]>2019-02-07 10:11:57 +0100
commit92910b6b2dd0b75bcc99e30eb660742168cef6ce (patch)
tree1d9afce6a805eed730f11d920d6cdccc7350164a /maximus/main.c
parent80bc7d79d79acdbb1f5b9b7dcb8e2b1ac7fd7884 (diff)
downloadmate-netbook-92910b6b2dd0b75bcc99e30eb660742168cef6ce.tar.bz2
mate-netbook-92910b6b2dd0b75bcc99e30eb660742168cef6ce.tar.xz
avoid deprecated 'gdk_error_trap_push/pop/pop_ignored' and 'gdk_flush'
Diffstat (limited to 'maximus/main.c')
-rw-r--r--maximus/main.c5
1 files changed, 3 insertions, 2 deletions
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 ();