[Gambas-devel] gb.gtk 05806 / qt bug
Daniel Campos
danielcampos at ...45...
Sun Aug 7 20:38:05 CEST 2005
Hi;
>>Bad idea for GTK+:
>>
>>1) GTK+ has these icons included in the same library, so you're wasting
>>memory
>>having it twice in memory (and hard disk).
>>
>>
>
>So this is the reason I didn't find them! I waste hard disk, but not memory as
>the picture files are memory mapped.
>
>
True :-)
>
>
>>2) Icons can change with the theme. What to do then? They will not look
>>at the rest
>>of applications.
>>
>>
>
>Do the stock icons included in the library change with the theme ? Are icon
>themes a GTK+ feature or a Gnome feature ?
>
>
They change as GTK+ looks in some paths (I suppose defined in the theme)
to replace
the original icons for the theme icons. However not all themes use that
feature.
It is a GTK+ feature: All themes for GTK+ are pure GTK+, not GNOME. In fact
the GNOME project is moving all the graphic features to GTK+ (Almost all
GNOME
widgets are deprecated). It is the modular conceptof GNOME: graphics:
GTK+ , xml: libxml,
process communication: dbus, and so on...
>
>
>
>
>OK. But please can you use the following syntax? Stock["XX/a/b/c"] where XX is
>the size of the icon: 16, 32, ... and 'a/b/c' the path to the icon - without
>any extension at the end. And can you simplify a bit the way GTK+ name its
>icons, by using subdirectories: Stock["16/text/bold"] for example, or
>Stock["16/device/harddisk"].
>
>If path is not found, Stock must find a icon of a different size, scale it,
>and return it.
>
>This way, I will be able to make a gb.qt gambas part that will use the same
>syntax, and equivalent icons. As for gb.qt.kde, I will override the Stock
>class so that it uses the KDE icon themes.
>
>
>
OK!
Regards,
D. Campos
More information about the Devel
mailing list