summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/math-window.c9
1 files changed, 9 insertions, 0 deletions
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)
{