Applying system scale on GTK 2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list



[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux