summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-aboutdialog.c
diff options
context:
space:
mode:
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;