Re: stock icon themes
- From: Tim Janik <timj gtk org>
- To: Havoc Pennington <hp redhat com>
- Cc: Gtk+ Developers <gtk-devel-list gnome org>
- Subject: Re: stock icon themes
- Date: Thu, 27 Jul 2000 21:11:17 +0200 (CEST)
On 27 Jul 2000, Havoc Pennington wrote:
>
> Tim Janik <timj@gtk.org> writes:
> > ok i see. gtk_push_default_icon_factory() builds up the stack
> > to look for icons not specified in rc files then, right?
>
> Yep, to find an icon, GTK first scans widget->style->icon_factories,
> then it falls back to this stack.
>
> > i guess you'd do another g_objet_unref (G_OBJECT (factory)); here
> > though?
>
> Well, my code sort of sucked; I removed my reference, then kept using
> the factory because I knew the stack was holding a reference...
>
> > we need a gtk_pop_default_icon_factory() btw, think plugins here.
> >
>
> Probably gtk_remove_default_icon_factory(), so plugins don't have to
> unload in the reverse order they were loaded.
ok, but then don't use _pop_ in the first place, we use push/pop
in pairs usually. gtk_add_default_icon_factory() comes closer
anyways, since you walk the whole list of default factories and
don't just use the last recently pushed one, e.g. like the
push/pop_colormap() interface works.
>
> Havoc
>
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]