GNOME Bugzilla – Bug 771167
Bigger fonts in file open popover
Last modified: 2016-09-23 16:56:58 UTC
Created attachment 335232 [details] gedit file open popover (image) Text in file open popover is a bit bigger. The font size for search entry text and the result list should be the same. See the attachment.
I can confirm this with GTK+/gedit 3.22.0 when text scaling is enabled (gnome-tweak-tool -> Fonts -> Scaling Factor). The font in the open doc selector is scaled twice, as far as I can tell. E.g., with a scaling factor 1.5, you get text that is scaled by factor 2.25. https://git.gnome.org/browse/gedit/commit/?id=28028555d18c3be0a9adb8c800472d63749c5c63 I suspect 96.0 in the above commit should be replaced by the GTK CSS DPI value. Or maybe there is a way to directly use the size in pixels with GtkCellRendererText.
Created attachment 336139 [details] [review] Proposed patch The attached patch works for me.
Review of attachment 336139 [details] [review]: Minor nitpick below, but other than that feel free to push thanks. I am happy to see the magic numbers dosappear ::: gedit/gedit-open-document-selector.c @@ +719,3 @@ } + if (selector->name_font) You can use g_clear_pointer to shorten the whole patch a bit
Comment on attachment 336139 [details] [review] Proposed patch Thanks for the review. Pushed with g_clear_pointer. commit be621916ab616e070c4e49127c88d5b945d2f53d Author: Jürg Billeter <j@bitron.ch> Date: Thu Sep 22 18:18:08 2016 +0200 Fix open doc selector font size with text scaling https://bugzilla.gnome.org/show_bug.cgi?id=771167