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 774893 - Application font sizes scaling gets clamped to 1.00 when starting GtkInspector
Application font sizes scaling gets clamped to 1.00 when starting GtkInspector
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Debugging
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-11-23 04:34 UTC by Jean-François Fortin Tam
Modified: 2016-11-28 13:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jean-François Fortin Tam 2016-11-23 04:34:36 UTC
Interestingly enough, in 3.22 (tested with a Wayland GNOME session), if I start the GTK inspector from any application, I will notice the font sizes shifting. That's because I set the system's font scaling in gnome-tweak-tool to "1.15", and it seems like GtkInspector starts and applies a default value of "1.00" instead of reading the user's global setting...
Comment 1 Matthias Clasen 2016-11-23 18:28:27 UTC
The code that initialized the font scale slider says:

  /* There is no backend agnostic way to get the default value, so use 1.0 */
  update_font_scale (vis, 1.0, TRUE, TRUE);


so, as far as the code is concerned, this is intentional. I guess somebody could work out the backend-dependent way of getting the current value, and plug that in there...
Comment 2 Emmanuele Bassi (:ebassi) 2016-11-28 13:19:45 UTC
Just for reference, this is the fix:

https://git.gnome.org/browse/gtk+/commit/?id=1af817e2549fd7c676fd3ff23f0d2bc5ac18432a