diff options
author | raveit65 <[email protected]> | 2017-07-30 08:58:47 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-05 15:02:54 +0200 |
commit | b914ba7954a9539ffa7ec1d4332d76181e82b7e2 (patch) | |
tree | b633ad8cb166e414887f5a977dfe732c98e9692c /cpufreq/src/cpufreq-applet.c | |
parent | f451d02fe210cf82b326fdc417825ff36b3aeff1 (diff) | |
download | mate-applets-b914ba7954a9539ffa7ec1d4332d76181e82b7e2.tar.bz2 mate-applets-b914ba7954a9539ffa7ec1d4332d76181e82b7e2.tar.xz |
cpufreq: don't use deprecated gtk_show_uri
Diffstat (limited to 'cpufreq/src/cpufreq-applet.c')
-rw-r--r-- | cpufreq/src/cpufreq-applet.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/cpufreq/src/cpufreq-applet.c b/cpufreq/src/cpufreq-applet.c index cff868f6..a726e156 100644 --- a/cpufreq/src/cpufreq-applet.c +++ b/cpufreq/src/cpufreq-applet.c @@ -577,10 +577,17 @@ cpufreq_applet_help_cb (GtkAction *action, { GError *error = NULL; +#if GTK_CHECK_VERSION (3, 22, 0) + gtk_show_uri_on_window (NULL, + "help:mate-cpufreq-applet", + gtk_get_current_event_time (), + &error); +#else gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (applet)), - "help:mate-cpufreq-applet", - gtk_get_current_event_time (), - &error); + "help:mate-cpufreq-applet", + gtk_get_current_event_time (), + &error); +#endif if (error) { cpufreq_utils_display_error (_("Could not open help document"), |