summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-aboutdialog.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-08-05 18:11:53 +0200
committerraveit65 <[email protected]>2017-08-10 07:59:45 +0200
commit98bd17040267ddd3b96dc8159c3776c00330d463 (patch)
tree9c74e82696698e80a5ee93d0f00e6513d167c554 /libmate-desktop/mate-aboutdialog.c
parent63bef64967f5f047f6832aac7efcce7203366609 (diff)
downloadmate-desktop-98bd17040267ddd3b96dc8159c3776c00330d463.tar.bz2
mate-desktop-98bd17040267ddd3b96dc8159c3776c00330d463.tar.xz
mate-about: avoid deprecated gtk_show_uri
Diffstat (limited to 'libmate-desktop/mate-aboutdialog.c')
-rw-r--r--libmate-desktop/mate-aboutdialog.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmate-desktop/mate-aboutdialog.c b/libmate-desktop/mate-aboutdialog.c
index 6ba325f..ae8ff79 100644
--- a/libmate-desktop/mate-aboutdialog.c
+++ b/libmate-desktop/mate-aboutdialog.c
@@ -162,12 +162,18 @@ default_url_hook (MateAboutDialog *about,
const gchar *uri,
gpointer user_data)
{
+#if GTK_CHECK_VERSION (3, 22, 0)
+ GError *error = NULL;
+
+ if (!gtk_show_uri_on_window (GTK_WINDOW (about), uri, gtk_get_current_event_time (), &error))
+#else
GdkScreen *screen;
GError *error = NULL;
screen = gtk_widget_get_screen (GTK_WIDGET (about));
if (!gtk_show_uri (screen, uri, gtk_get_current_event_time (), &error))
+#endif
{
GtkWidget *dialog;