summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-07-28 20:56:52 +0200
committerraveit65 <[email protected]>2017-08-05 15:02:54 +0200
commitf451d02fe210cf82b326fdc417825ff36b3aeff1 (patch)
tree25a5a0c13930ae7507ccb1d534d1c5e231f8d9b1
parenta59554afd9586e30e2203978472f76daca3eecc3 (diff)
downloadmate-applets-f451d02fe210cf82b326fdc417825ff36b3aeff1.tar.bz2
mate-applets-f451d02fe210cf82b326fdc417825ff36b3aeff1.tar.xz
charpick: don't use deprecated gtk_show_uri
-rw-r--r--charpick/charpick.c7
-rw-r--r--charpick/properties.c7
2 files changed, 14 insertions, 0 deletions
diff --git a/charpick/charpick.c b/charpick/charpick.c
index 28917451..3b8846da 100644
--- a/charpick/charpick.c
+++ b/charpick/charpick.c
@@ -659,10 +659,17 @@ help_cb (GtkAction *action,
{
GError *error = NULL;
+#if GTK_CHECK_VERSION (3, 22, 0)
+ gtk_show_uri_on_window (NULL,
+ "help:mate-char-palette",
+ gtk_get_current_event_time (),
+ &error);
+#else
gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (curr_data->applet)),
"help:mate-char-palette",
gtk_get_current_event_time (),
&error);
+#endif
if (error) { /* FIXME: the user needs to see this */
g_warning ("help error: %s\n", error->message);
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);