summaryrefslogtreecommitdiff
path: root/plugins/a11y-keyboard
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-07-27 14:55:25 +0200
committerraveit65 <[email protected]>2017-07-27 16:07:48 +0200
commit3e0977eea62c5874814c811479ed461760566e88 (patch)
tree1ec70ac38850cee037873d5f2d334b2dfdfbc237 /plugins/a11y-keyboard
parent39fa8f54b18ee53030344cb7e2a898cb12f93d59 (diff)
downloadmate-settings-daemon-3e0977eea62c5874814c811479ed461760566e88.tar.bz2
mate-settings-daemon-3e0977eea62c5874814c811479ed461760566e88.tar.xz
don't use deprecated gtk_show_uri
Diffstat (limited to 'plugins/a11y-keyboard')
-rw-r--r--plugins/a11y-keyboard/msd-a11y-keyboard-manager.c7
1 files changed, 7 insertions, 0 deletions
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)) {