Re: Show and Hide Menu Items



On Thu, 2004-06-10 at 22:10, ext Juhana Sadeharju wrote:
> >From: Bobby King <bking321 charter net>
> >
> >How does one show and hide menu items? At various states of an
> >application, I want only a specific subset of menu items to be visible
> >(accessible). Each state is entered by selecting a specific menu item.
> 
> That must be a hard problem because I have not seen a good solution to
> it. Until I come up with an elegant solution, I don't waste time
> for writing messy code like others.

"All actions that would make sense to use in a particular context should
be in a single group."

gtk_action_group_set_visible () (haven't tried it personally, but looks
reasonable.)


-- 
Tommi Komulainen <tommi komulainen nokia com>



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