Re: How to make menu insensitive



Craig Emery wrote:
> 
> After setting up the menu with the item factory I use
> gtk_item_factory_get_widget ()
> to get the widget that's created with the path of the item I want.
> 
> Then (if, say, it's a check-box item) you can call
> 
> gtk_check_menu_item_set_active (...)
> 
> might not be the best method, but works for me.
> 
> Craig.
> 
> Deekshit Mantampady wrote:
> 
> >Hi,
> >
> >  I am using "GtkItemFactory" to create menus. I want to know How I
> >enable or disable, make it visible or invisible, dynamically. Can
> >anybody help me to find out solution.
> >
> >Regards
> >Deekshit M

Hi, you can also use gtk_widget_show()/gtk_widget_hide() to make menu
items appear and disappear, and gtk_widget_set_sensitive() to make items
grey out/not grey out.

John




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