Re: GEP 7 - icons and thumbnails - gnome_icon_loader
- From: Michael Meeks <michael ximian com>
- To: Alex Larsson <alexl redhat com>
- Cc: gnome-libs-devel gnome org
- Subject: Re: GEP 7 - icons and thumbnails - gnome_icon_loader
- Date: 27 Sep 2002 10:25:48 +0100
Hi Alex,
On Thu, 2002-09-26 at 20:03, Alexander Larsson wrote:
> I'm not saying all icons need names, but I was gonna use DisplayName when
> re-implementing the emblem browser for instance (its a bit busted right
> now, since the emblems are read from the icon theme now).
Right - I can see that's useful.
> The current
> browser uses some hacky xml files to translate the built in emblems
> and nothing for use-added emblems.
Yes - which sucks.
> For GnomeIconLoader they are indeed not very useful, but we're talking on
> the order of two strings per app here. It can hardly be called bloat.
Sure - the theme name / description isn't bloat - but I still think we
should get rid of them ;-) - having that file without any i18n bloat
seems a good plan to me; that is if you agree about the metatheme thing
?
> The DisplayName field was added (to the spec) because it was deemed very
> useful, especially for KDE. For some icons (like emblems) it makes sense.
Right; and that's another thing that slightly worries me about the API.
I'm a tad concerned that the API exposes us to hefty memory use problems
[in a non-fixable way] if we use a KDE theme that has every icon marked
up with some sort of name, which they're fully at liberty to do.
Similarly, the custom attributes don't seem to be exposed in the API
either [ as mentioned in the spec. ]
My feeling is that the best way to solve the problem is by making the
structure opaque and proving accessors. [ might be nice to be able to
get the URI from the IconData again even ]. Something like:
char *gnome_icon_data_get_display_name ();
gboolean gnome_icon_data_get_embedded_rect (GdkRectangle *);
gboolean gnome_icon_data_get_attach_points (int *n, guint16 **pts);
etc.
Then we can re-hash the impl. in interesting ways as/when it's
necessary, avoid the fixed size limit for attach points etc. - how does
that sound ?
[ sorry to be a pain ].
> > Took a poke at that, interesting - didn't improve my nautilus icon
> > situation but ... ;-)
>
> Situation?
Somehow I'm not getting anything but the builtin icon for everything;
it's certainly something stupid I'm doing though.
Regards,
Michael.
--
mmeeks gnu org <><, Pseudo Engineer, itinerant idiot
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]