Re: bonobo toolbar separator patch
- From: Nat Friedman <nat helixcode com>
- To: John Sullivan <sullivan eazel com>
- Cc: gnome-components-list <gnome-components-list gnome org>
- Subject: Re: bonobo toolbar separator patch
- Date: 20 Mar 2000 06:21:19 -0500
John Sullivan <sullivan@eazel.com> writes:
> on 3/20/00 2:01 AM, Nat Friedman at nat@helixcode.com wrote:
>
> >> By the way, should that toolbar_item_widget != NULL test be an assert
> >> instead of a test?
> >
> > Can we think of a time we might validly insert a NULL widget into the
> > hash table? It depends on how we handle the separators, I guess. If
> > we just don't stick anything into the hash table for them (as your
> > patches indicate), then yes, it should be an assert. I can't think of
> > any other situation which might lead us to stuff a NULL widget in
> > there, though.
>
> I suppose there might be another way to fix the separator issue by inserting
> a NULL widget. The NULL widget could be the stand-in for a separator. That
> might allow us to remove the separator later, which is currently impossible.
You can remove the thing later without putting it in there. It's just
a policy decision we have to make. My current feeling is that we
should put the NULL pointer in there for consistency.
> I won't change the test to an assertion at this time, but I'll check in my
> other changes. There's a FIXME at the point of separator creation that notes
> that the separator can't be removed.
This sounds fine.
We really still need a new toolbar widget.
Nat
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]