[maemo-developers] [maemo-developers] gtk+ builtin stock icons removed

From: Florian Boor florian.boor at kernelconcepts.de
Date: Wed Oct 26 20:32:10 EEST 2005
Hello,

Tommi Komulainen wrote:
> This message was brought to you by the performance police. The builtin
> stock icons compiled in the gtk+ library are causing extra >30k dynamic
> memory consumption regardless of whether they're ever used. In 770 all
> icons are coming from the icon theme anyway, so this is a cheap and
> simple optimization to do. And everyone loves to have better
> performance, right? :)

i don't think 30k is worth making it a major pain maintaining applications which
support both plain GTK and Hildon UI. But that's my personal opinion.
In addition to this you loose a pile of convenient functions to deal with the
stock icons. UI guidelines (e.g. the Gnome HIG) suggest to use a set of well
known symbols for common operations which is a really good idea if you want
users to feel familiar with their applications - another important feature you
will loose with this.

My suggestion: Forget about this as long as you don't offer a similar feature to
replace the builtin stock icons. It might be a good idea to modify GTK in a way
that only the the stock icons used by an application are kept in memory instead
of compiling them into the library.
Additionally it might be a good idea to replace the builtin icons with maemo
style icons... currently some of them look pretty good (like the arrows, useful
to replace the broken GtkArrows in the default theme), but some look very different.

Greetings

Florian

-- 
The dream of yesterday                  Florian Boor
is the hope of today                    Tel: 0271-771091-14
and the reality of tomorrow.            Fax: 0271-771091-19
[Robert Hutchings Goddard, 1904]        florian.boor at kernelconcepts.de

6C 44 30 4C 43 20 6B 61  16 07 0F AA E6 97 70 A8

More information about the maemo-developers mailing list