diff options
author | raveit65 <[email protected]> | 2017-07-30 10:46:54 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-05 15:02:54 +0200 |
commit | b7a723af540cd8051807a2af4f33141029ea1659 (patch) | |
tree | 7a59b66dde6a8cab34341a97817eee6405d4aeab /mateweather/mateweather-pref.c | |
parent | 822ccb7f2f14f839291b79efdb938912a1217806 (diff) | |
download | mate-applets-b7a723af540cd8051807a2af4f33141029ea1659.tar.bz2 mate-applets-b7a723af540cd8051807a2af4f33141029ea1659.tar.xz |
weather: don't use deprecated gtk_show_uri
Diffstat (limited to 'mateweather/mateweather-pref.c')
-rw-r--r-- | mateweather/mateweather-pref.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mateweather/mateweather-pref.c b/mateweather/mateweather-pref.c index 266a615a..faee9e0b 100644 --- a/mateweather/mateweather-pref.c +++ b/mateweather/mateweather-pref.c @@ -744,7 +744,14 @@ static void help_cb(GtkDialog* dialog, MateWeatherPref* pref) current_page = gtk_notebook_get_current_page (GTK_NOTEBOOK (pref->priv->notebook)); uri = g_strdup_printf ("help:mateweather/mateweather-prefs#mateweather-%s", (current_page == 0) ? "metric" : "change-location"); +#if GTK_CHECK_VERSION (3, 22, 0) + gtk_show_uri_on_window (GTK_WINDOW (dialog), + uri, + gtk_get_current_event_time (), + &error); +#else gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (dialog)), uri, gtk_get_current_event_time (), &error); +#endif g_free (uri); if (error) |