After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 765966 - settings: fix initial value for gtk-font-name
settings: fix initial value for gtk-font-name
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-05-04 09:22 UTC by Christian Hergert
Modified: 2016-05-06 11:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
settings: fix initial value for gtk-font-name (1.41 KB, patch)
2016-05-04 09:22 UTC, Christian Hergert
committed Details | Review

Description Christian Hergert 2016-05-04 09:22:21 UTC
Fixes invalid fonts at application startup.
Comment 1 Christian Hergert 2016-05-04 09:22:26 UTC
Created attachment 327274 [details] [review]
settings: fix initial value for gtk-font-name

Previously, fetching the font size with gtk_settings_get_font_size() would
result in 0 until a font had been changed in the underlying settings (such
as in GSettings for wayland).

This fixes the initial value to match what would have happened after a
notify of the property changing.
Comment 2 Christian Hergert 2016-05-06 05:40:51 UTC
It looks like commit fe7be14db8efb08e72e22f60c2640cdc1fdfcd6e reintroduced the issue with the font being invalid at start-up.
Comment 3 Christian Hergert 2016-05-06 11:41:55 UTC
Fixed in commit b938cfe5be41bf55aec9ced843b26f27518d3c9f.