File mate-user-share-gtk-3.20.patch of Package mate-user-share

--- a/configure.ac
+++ b/configure.ac
@@ -62,8 +62,8 @@ AS_IF([test "x$enable_bluetooth" = "xyes
 ])
 AM_CONDITIONAL(USE_BLUETOOTH, [test "$enable_bluetooth" = "yes"])
 
-GLIB_REQUIRED_VERSION=2.50.0
-GTK_REQUIRED_VERSION=3.22.0
+GLIB_REQUIRED_VERSION=2.48.0
+GTK_REQUIRED_VERSION=3.20.0
 
 dnl ==========================================================================
 
--- a/src/file-share-properties.c
+++ b/src/file-share-properties.c
@@ -438,7 +438,12 @@ help_button_clicked (GtkButton *button,
 {
 	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_window_get_screen (GTK_WINDOW (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));
openSUSE Build Service is sponsored by