Re: How to make menu insensitive
- From: John Cupitt <john cupitt ng-london org uk>
- To: Craig Emery <craig emery 3glab com>
- Cc: GTK List <gtk-list gnome org>
- Subject: Re: How to make menu insensitive
- Date: Thu, 28 Jun 2001 11:52:15 +0100
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]