From f451d02fe210cf82b326fdc417825ff36b3aeff1 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Fri, 28 Jul 2017 20:56:52 +0200 Subject: charpick: don't use deprecated gtk_show_uri --- charpick/properties.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'charpick/properties.c') diff --git a/charpick/properties.c b/charpick/properties.c index bf1dfd5a..4842b478 100644 --- a/charpick/properties.c +++ b/charpick/properties.c @@ -507,10 +507,17 @@ phelp_cb (GtkDialog *dialog, gint tab, gpointer data) { GError *error = NULL; +#if GTK_CHECK_VERSION (3, 22, 0) + gtk_show_uri_on_window (GTK_WINDOW (dialog), + "help:mate-char-palette/charpick-prefs", + gtk_get_current_event_time (), + &error); +#else gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (dialog)), "help:mate-char-palette/charpick-prefs", gtk_get_current_event_time (), &error); +#endif if (error) { /* FIXME: the user needs to see this */ g_warning ("help error: %s\n", error->message); -- cgit v1.2.1