Web lists-archives.com

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?

Best regards,
 Andreas Falkenhahn                          mailto:andreas@xxxxxxxxxxxxxx

gtk-list mailing list