From d5e02604d34265458a2a9ac115620411eed3588f Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sun, 23 Jul 2017 13:03:59 +0200 Subject: cpufreq-prefs: don't use deprecated gtk_show_uri --- cpufreq/src/cpufreq-prefs.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cpufreq/src') 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); -- cgit v1.2.1