[Angstrom-devel] [oe] [RFC] Smallscreen mod for GtkFileChooser
Stanislav Brabec
utx at penguin.cz
Thu Jan 10 16:09:04 CET 2008
Koen Kooi wrote:
> Florian Boor schreef:
> >It would be better if the screen size is checked at runtime.
>
> Screensize and DPI, otherwise you'll run into troubles with devices like
> the neo where you have enough pixels, but not enough physical space and
> at the other end of the spectrum video-walls where you have copious
> amount of physical space, but not enough pixels.
Looking at original Paul's patch:
gdk_screen_width_mm() + gdk_screen_height_mm() < MAGIC_CONSTANT_SUM_OF_SCREEN_EDGES_AROUND_150
or ration of screen size in pixels to default font size in pixels:
gdk_screen_width() + gdk_screen_height() - MAGIC_CONSTANT_VASTED_PIXELS_AROUND_84) / pango_font_description_get_size (GTK_WIDGET (impl)->style->font_desc) < MAGIC_CONSTANT_NUM_OF_CHARS_AROUND_70
(both are untested)
--
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus
More information about the Angstrom-distro-devel
mailing list