summaryrefslogtreecommitdiff
path: root/cpufreq/src/cpufreq-prefs.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-07-23 13:03:59 +0200
committerraveit65 <[email protected]>2017-07-24 07:28:17 +0200
commitd5e02604d34265458a2a9ac115620411eed3588f (patch)
tree3a3e43da719759aabbadab2f5987cef8f2fe8f33 /cpufreq/src/cpufreq-prefs.c
parent8111ccc52917dd0de924920b333a37240674dd9b (diff)
downloadmate-applets-d5e02604d34265458a2a9ac115620411eed3588f.tar.bz2
mate-applets-d5e02604d34265458a2a9ac115620411eed3588f.tar.xz
cpufreq-prefs: don't use deprecated gtk_show_uri
Diffstat (limited to 'cpufreq/src/cpufreq-prefs.c')
-rw-r--r--cpufreq/src/cpufreq-prefs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpufreq/src/cpufreq-prefs.c b/cpufreq/src/cpufreq-prefs.c
index 9c7f27c2..d703973a 100644
--- a/cpufreq/src/cpufreq-prefs.c
+++ b/cpufreq/src/cpufreq-prefs.c
@@ -356,7 +356,11 @@ cpufreq_prefs_dialog_response_cb (CPUFreqPrefs *prefs,
GError *error = NULL;
if (response == GTK_RESPONSE_HELP) {
+#if GTK_CHECK_VERSION (3, 22, 0)
+ gtk_show_uri_on_window (GTK_WINDOW (prefs->priv->dialog),
+#else
gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (prefs->priv->dialog)),
+#endif
"help:mate-cpufreq-applet/cpufreq-applet-prefs",
gtk_get_current_event_time (),
&error);