Applying system scale on GTK 2
- From: Andreas Falkenhahn <andreas falkenhahn com>
- To: gtk-list gnome org
- Subject: Applying system scale on GTK 2
- Date: Fri, 2 Mar 2018 20:54:26 +0100
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 falkenhahn com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]