From 055a10493cb5fc033d6c77bdca85b36c48d773b5 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sun, 23 Jul 2017 13:38:28 +0200 Subject: math-window: don't use deprecated gtk_show_uri --- src/math-window.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/math-window.c b/src/math-window.c index 3cde97e..8aef77b 100644 --- a/src/math-window.c +++ b/src/math-window.c @@ -198,11 +198,20 @@ static void redo_cb(GtkWidget *widget, MathWindow *window) static void help_cb(GtkWidget *widget, MathWindow *window) { +#if GTK_CHECK_VERSION (3, 22, 0) + GError *error = NULL; + + gtk_show_uri_on_window(GTK_WINDOW(window), + "help:mate-calc", + gtk_get_current_event_time(), + &error); +#else GdkScreen *screen; GError *error = NULL; screen = gtk_widget_get_screen(GTK_WIDGET(window)); gtk_show_uri(screen, "help:mate-calc", gtk_get_current_event_time(), &error); +#endif if (error != NULL) { -- cgit v1.2.1