lmi
[Top][All Lists]
Advanced

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

Re: [lmi] [PATCH] Don't hard code explicit wxDatePickerCtrl size


From: Vadim Zeitlin
Subject: Re: [lmi] [PATCH] Don't hard code explicit wxDatePickerCtrl size
Date: Thu, 29 Jan 2015 21:35:14 +0100

On Thu, 29 Jan 2015 17:48:16 +0000 Greg Chicares <address@hidden> wrote:

GC> Now I've built lmi natively for gnu/linux, and set my DPI to 192...and
GC> indeed I see the problem you mentioned. Using 'skin.xrc', on the "Inforce"
GC> tab, numeric fields are only wide enough to display "1234", and date fields
GC> show "01/" and half of a "2".

 This is without the patch, isn't it? Or does it happen even with the patch
applied?

GC> Unfortunately, I can't find a way to rescale it--these environment
GC> variables seem to have no effect:

 I'm almost certain that both GDK_SCALE and GDK_DPI_SCALE are only taken
into account by GTK+ 3, not GTK+ 2 which is still used by wxWidgets by
default. You could build with the former using --with-gtk=3 wx configure
option (and you could have this build in parallel with wxGTK2 one), or I
could test it a bit later if you think it's worth doing.

GC> The toolbar icons are tiny, but they're the same size as gedit's.

 I think that this is because you use scaling at xrandr level and not GTK+
level. If it were the latter, the icons would be larger but ugly because
they would be upscaled. The only solution is to have the icons in both the
normal (24*24) and double (48*48) sizes, but wxGTK doesn't automatically
select the correct icon to use depending on the DPI yet, unlike wxOSX, for
example.

 Regards,
VZ

reply via email to

[Prev in Thread] Current Thread [Next in Thread]