File mate-sensors-applet-gtk-3.20.patch of Package mate-sensors-applet
--- a/configure.ac
+++ b/configure.ac
@@ -47,8 +47,8 @@ AC_CHECK_HEADERS(
dlfcn.h
)
-GLIB_REQUIRED=2.50.0
-GTK_REQUIRED=3.22.0
+GLIB_REQUIRED=2.48.0
+GTK_REQUIRED=3.20.0
LIBPANEL_REQUIRED=1.17.0
LIBNOTIFY_REQUIRED=0.7.0
LIBCAIRO_REQUIRED=1.0.4
--- a/sensors-applet/prefs-dialog.c
+++ b/sensors-applet/prefs-dialog.c
@@ -71,7 +71,11 @@ void prefs_dialog_response(GtkDialog *pr
((current_page == 1) ?
"sensors-applet-sensors" :
NULL)));
+#if GTK_CHECK_VERSION(3, 22, 0)
gtk_show_uri_on_window(NULL, uri, gtk_get_current_event_time(), &error);
+#else
+ gtk_show_uri(gdk_screen_get_default(), uri, gtk_get_current_event_time(), &error);
+#endif
g_free(uri);
if (error) {
--- a/sensors-applet/sensor-config-dialog.c
+++ b/sensors-applet/sensor-config-dialog.c
@@ -81,10 +81,17 @@ static void sensor_config_dialog_respons
switch (response) {
case GTK_RESPONSE_HELP:
g_debug("loading help in config dialog");
+#if GTK_CHECK_VERSION(3, 22, 0)
gtk_show_uri_on_window(NULL,
"help:mate-sensors-applet/sensors-applet-sensors#sensors-applet-sensor-config-dialog",
gtk_get_current_event_time(),
&error);
+#else
+ gtk_show_uri(gdk_screen_get_default(),
+ "help:mate-sensors-applet/sensors-applet-sensors#sensors-applet-sensor-config-dialog",
+ gtk_get_current_event_time(),
+ &error);
+#endif
if (error) {
g_debug("Could not open help document: %s ",error->message);
--- a/sensors-applet/sensors-applet.c
+++ b/sensors-applet/sensors-applet.c
@@ -79,7 +79,11 @@ static void help_cb(GtkAction *action, g
GError *error = NULL;
+#if GTK_CHECK_VERSION(3, 22, 0)
gtk_show_uri_on_window(NULL, "help:mate-sensors-applet",
+#else
+ gtk_show_uri(gdk_screen_get_default(), "help:mate-sensors-applet",
+#endif
gtk_get_current_event_time(),
&error);