From 3e0977eea62c5874814c811479ed461760566e88 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Thu, 27 Jul 2017 14:55:25 +0200 Subject: don't use deprecated gtk_show_uri --- plugins/a11y-keyboard/msd-a11y-keyboard-manager.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugins/a11y-keyboard') diff --git a/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c b/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c index a33cf40..08c77db 100644 --- a/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c +++ b/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c @@ -399,7 +399,9 @@ ax_response_callback (MsdA11yKeyboardManager *manager, guint revert_controls_mask, gboolean enabled) { +#if !GTK_CHECK_VERSION (3, 22, 0) GdkScreen *screen; +#endif GError *err; switch (response_id) { @@ -424,6 +426,10 @@ ax_response_callback (MsdA11yKeyboardManager *manager, break; case GTK_RESPONSE_HELP: +#if GTK_CHECK_VERSION (3, 22, 0) + err = NULL; + if (!gtk_show_uri_on_window (parent, +#else if (!parent) screen = gdk_screen_get_default (); else @@ -431,6 +437,7 @@ ax_response_callback (MsdA11yKeyboardManager *manager, err = NULL; if (!gtk_show_uri (screen, +#endif "help:user-guide#goscustaccess-6", gtk_get_current_event_time(), &err)) { -- cgit v1.2.1