Re: GtkToolbar




Gert <gs2@nowmoo.demon.nl> writes:

> On Sat, 27 Mar 1999, Curtiss Howard wrote:
> 
> > >Hello,
> > >
> > >How do you hide a `space' on a toolbar? I can simply gtk_widget_hide() 
> > one
> > >of the buttons, but not the spaces ...
> > >
> > 
> > Uh... wouldn't you just NOT use spaces if you didn't want to see them?
> > Get Your Private, Free Email at http://www.hotmail.com
> > 
> 
> I have a toolbar with context sensetive buttons. So I add them all to the
> toolbar and hide the ones that are not relative. I can't hide the spaces,
> so between some buttons, all the spaces between the hidden buttons also
> show up ...

Hmmm, it looks like you've found a hole in the GtkToolbar API -
there is no way to remove or hide spaces.

Right now, it looks like the cleanest way would be to destroy
the toolbar and recreate it.

There probably should be a gtk_toolbar_remove_item() call.
(Patches solicited...)

Regards,
                                        Owen



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