diff options
author | raveit65 <[email protected]> | 2017-07-23 13:38:28 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-07-23 13:38:28 +0200 |
commit | 055a10493cb5fc033d6c77bdca85b36c48d773b5 (patch) | |
tree | 9c62cbffdc05a2e521e0e844ea2ecedfc5dfe207 | |
parent | 3c5a9ea1398905f3d24c77a6ad774d3c33669380 (diff) | |
download | mate-calc-055a10493cb5fc033d6c77bdca85b36c48d773b5.tar.bz2 mate-calc-055a10493cb5fc033d6c77bdca85b36c48d773b5.tar.xz |
math-window: don't use deprecated gtk_show_uri
-rw-r--r-- | src/math-window.c | 9 |
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) { |