Re: [AD] Proposal for a set_icon function |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
> Well, I've just found a way that would allow to set the program icon on
> BeOS without affecting the exe. If an icon is attached on the exe as a
> resource, any change on the icon via the set_icon function would do
> nothing...
Do you mean icons can be attached to exes on BeOS like on Windows ?
If so, why to bother with a runtime setting function ? That's a point I
definitely don't understand...
> We already said in previous post that if an icon is attached to an exe, it
> should have an higher priority over the icon set from the program code;
> what's so bad in allowing realtime icon changing anyway?
In my mind the question is rather: what is it for ?
> The same could have been said for the set_window_title() function, but as
> this is already in, a set_window_icon() would fit nicely IMHO.
But the window title is not a static property that matters even though the
program is not running as icons are. Were icons only displayed when the
program is running, I would be ok but this is not the case at least on
Windows.
> But in any case the set_window_icon() should be available as the icon as a
> resource attached to the exe could not be available on some platforms at
> all (see Linux).
Let's talk about Linux, say for example KDE: is setting the icon at runtime
really useful ? Doesn't KDE already do the work for you ?
---
Eric Botcazou
ebotcazou@xxxxxxxxxx