Applying system scale on GTK 2
- Date: Fri, 2 Mar 2018 20:54:26 +0100
- From: Andreas Falkenhahn <andreas@xxxxxxxxxxxxxx>
- Subject: Applying system scale on GTK 2
I have tried to run my GTK 2 application on a high DPI monitor and this leads to some layout issues because values that are passed to gtk_widget_set_size_request() are in pixels.
I can solve these problems by reading the "Xft.dpi" Xresource and multiplying all my pixel values by it. Still, I'm wondering whether GTK 2 has an inhouse solution for this particular problem because my solution seems rather hackish. Any ideas?
Andreas Falkenhahn mailto:andreas@xxxxxxxxxxxxxx
gtk-list mailing list