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 | |
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')
-rw-r--r-- | cpufreq/src/cpufreq-applet.c | 13 | ||||
-rw-r--r-- | cpufreq/src/cpufreq-prefs.c | 9 |
2 files changed, 16 insertions, 6 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"), diff --git a/cpufreq/src/cpufreq-prefs.c b/cpufreq/src/cpufreq-prefs.c index d703973a..43009ed0 100644 --- a/cpufreq/src/cpufreq-prefs.c +++ b/cpufreq/src/cpufreq-prefs.c @@ -358,12 +358,15 @@ cpufreq_prefs_dialog_response_cb (CPUFreqPrefs *prefs, if (response == GTK_RESPONSE_HELP) { #if GTK_CHECK_VERSION (3, 22, 0) gtk_show_uri_on_window (GTK_WINDOW (prefs->priv->dialog), + "help:mate-cpufreq-applet/cpufreq-applet-prefs", + gtk_get_current_event_time (), + &error); #else gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (prefs->priv->dialog)), + "help:mate-cpufreq-applet/cpufreq-applet-prefs", + gtk_get_current_event_time (), + &error); #endif - "help:mate-cpufreq-applet/cpufreq-applet-prefs", - gtk_get_current_event_time (), - &error); if (error) { cpufreq_utils_display_error (_("Could not open help document"), |