4.6.0

Nick Schermer nickschermer at gmail.com
Tue Feb 17 14:36:25 CET 2009


2009/2/17 Olivier Fourdan <fourdan at gmail.com>:
> Hi,
>
> On Tue, Feb 17, 2009 at 12:42 PM, Jannis Pohlmann <jannis at xfce.org> wrote:
>> Am Tue, 17 Feb 2009 12:54:13 +0100
>> schrieb Nick Schermer <nickschermer at gmail.com>:
>>
>>> 2009/2/17 Olivier Fourdan <fourdan at gmail.com>:
>>> > On Tue, Feb 17, 2009 at 9:29 AM, Yves-Alexis Perez
>>> > <corsac at debian.org> wrote:
>>> >> Basically, it seems to me that using -1 is really not a good idea,
>>> >> you don't really know what will happens. 96 maybe, but you're not
>>> >> really sure. The way gnome-settings-daemon does it is to use the
>>> >> value stored in gconf if it exists, or ask the xserver what it
>>> >> thinks (if the value seems impossible (iirc less than 50 or over
>>> >> 5000), then it uses 96.
>>> >
>>> > That's not too much work, I can cook up a patch fairly quickly,
>>>
>>> There is already code to calculate this in the display code iirc.
>
> Display? I am not sure it belongs to the display.

Err, sorry:
xfce4-settings/trunk/dialogs/appearance-settings/main.c:appearance_settings_get_dpi_from_x

Nick



More information about the Xfce4-dev mailing list