Re: Setting window icons



On 21 Feb 2001, Havoc Pennington wrote:

> 
> Alexander Larsson <alla lysator liu se> writes: 
> > Maybe we should use two icons? large and small?
> > 
> 
> Unless we force the app to provide specific sizes (e.g. 48x48 and
> 16x16) it seems hard to ensure that providing two means you end up
> with better post-scaling quality than providing only one. Though I
> don't know really.
> 
> I'm kind of predicting that anything more than a single icon will be
> too hard for app developers to get right.

How about an gtk_window_add_icon() API, which just appends an extra Pixbuf
to the list of icons for the window?  That way an app that just wants a
normal icon for their window adds a single icon.  For apps that want a
mini icon, they can just call the function again with a different size
icon.

For platforms where only one icon is used, it can just ignore subsequent
calls to add_icon().

James.

-- 
Email: james daa com au
WWW:   http://www.daa.com.au/~james/






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