diff options
-rw-r--r-- | sensors-applet/prefs-dialog.c | 4 | ||||
-rw-r--r-- | sensors-applet/sensor-config-dialog.c | 6 | ||||
-rw-r--r-- | sensors-applet/sensors-applet.c | 6 |
3 files changed, 14 insertions, 2 deletions
diff --git a/sensors-applet/prefs-dialog.c b/sensors-applet/prefs-dialog.c index 2c8c458..855560f 100644 --- a/sensors-applet/prefs-dialog.c +++ b/sensors-applet/prefs-dialog.c @@ -70,7 +70,11 @@ void prefs_dialog_response(GtkDialog *prefs_dialog, ((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(NULL, uri, gtk_get_current_event_time(), &error); +#endif g_free(uri); if (error) { diff --git a/sensors-applet/sensor-config-dialog.c b/sensors-applet/sensor-config-dialog.c index edab9cc..901324f 100644 --- a/sensors-applet/sensor-config-dialog.c +++ b/sensors-applet/sensor-config-dialog.c @@ -79,11 +79,15 @@ static void sensor_config_dialog_response(GtkDialog *dialog, 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, +#else gtk_show_uri(NULL, +#endif "help:mate-sensors-applet/sensors-applet-sensors#sensors-applet-sensor-config-dialog", gtk_get_current_event_time(), &error); - + if (error) { g_debug("Could not open help document: %s ",error->message); g_error_free (error); diff --git a/sensors-applet/sensors-applet.c b/sensors-applet/sensors-applet.c index 2a20360..ac156e7 100644 --- a/sensors-applet/sensors-applet.c +++ b/sensors-applet/sensors-applet.c @@ -77,8 +77,12 @@ static void help_cb(GtkAction *action, gpointer data) { GError *error = NULL; - + +#if GTK_CHECK_VERSION (3, 22, 0) + gtk_show_uri_on_window(NULL, "help:mate-sensors-applet", +#else gtk_show_uri(NULL, "help:mate-sensors-applet", +#endif gtk_get_current_event_time(), &error); |