summaryrefslogtreecommitdiff
path: root/src/file-share-properties.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-07-27 19:45:12 +0200
committerraveit65 <[email protected]>2017-07-27 19:45:12 +0200
commita31fa77632156eaad561035607119a637c1e0b8b (patch)
treed585a606a87a6efb61e3c41094f7d3b4c5af884e /src/file-share-properties.c
parent57c3761972d558b75155e102cafcd062ab6f0c5d (diff)
downloadmate-user-share-a31fa77632156eaad561035607119a637c1e0b8b.tar.bz2
mate-user-share-a31fa77632156eaad561035607119a637c1e0b8b.tar.xz
don't use deprecated gtk_show_uri
Diffstat (limited to 'src/file-share-properties.c')
-rw-r--r--src/file-share-properties.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/file-share-properties.c b/src/file-share-properties.c
index 4631981..dad134b 100644
--- a/src/file-share-properties.c
+++ b/src/file-share-properties.c
@@ -438,7 +438,11 @@ help_button_clicked (GtkButton *button, GtkWidget *window)
{
GError *error = NULL;
+#if GTK_CHECK_VERSION (3, 22, 0)
+ if (gtk_show_uri_on_window (GTK_WINDOW (window), "help:mate-user-share", gtk_get_current_event_time (), &error) == FALSE) {
+#else
if (gtk_show_uri (gtk_widget_get_screen (window), "help:mate-user-share", gtk_get_current_event_time (), &error) == FALSE) {
+#endif
GtkWidget *dialog;
dialog = error_dialog (_("Could not display the help contents."), error->message, GTK_WINDOW (window));