diff options
author | raveit65 <[email protected]> | 2016-08-01 20:11:22 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-08-05 11:58:51 +0200 |
commit | da123cf8e224bdcdf0c2fb02b198c27a22b27278 (patch) | |
tree | dcec5ae5d0bc7af3df5143c2c8ceb6f65d4731d7 /mateweather | |
parent | 7776d6208bc804af5f0bce4c5b7c284b06bb052e (diff) | |
download | mate-applets-da123cf8e224bdcdf0c2fb02b198c27a22b27278.tar.bz2 mate-applets-da123cf8e224bdcdf0c2fb02b198c27a22b27278.tar.xz |
GTK+-3 weather-dialog: avoid deprecated gtk_widget_modify_font ()
Diffstat (limited to 'mateweather')
-rw-r--r-- | mateweather/mateweather-dialog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mateweather/mateweather-dialog.c b/mateweather/mateweather-dialog.c index b9df814e..f627c43b 100644 --- a/mateweather/mateweather-dialog.c +++ b/mateweather/mateweather-dialog.c @@ -707,7 +707,11 @@ void mateweather_dialog_update(MateWeatherDialog* dialog) if (gw_applet->mateweather_pref.location->zone_valid) { font_desc = get_system_monospace_font (); if (font_desc) { +#if GTK_CHECK_VERSION(3,0,0) + gtk_widget_override_font (priv->forecast_text, font_desc); +#else gtk_widget_modify_font (priv->forecast_text, font_desc); +#endif pango_font_description_free (font_desc); } |