Re: Disabling Menu Items



You can get a reference to the widget by using this function:
gtk_item_factory_get_widget(item_factory, "path/to/menu/item")
where the second argument is the path to the widget starting with the
name of menu.
You can then use gtk_widget_set_sensitive(widget) on the result.

Later,
Chris

On Thu, 2001-10-04 at 20:45, Diwakar wrote:
> 
> Hi,
> 
> I am a bit new to GTK. However I have constructed a menu using
> GtkItemFactoryEntry now during certain call backs I wish to enable/disable
> the menu-items. Can some-one help me?
> 
> Regards
> 
> Diwakar
> 
> 
> _______________________________________________
> gnome-devel-list mailing list
> gnome-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-devel-list
-- 

http://glimmer.sourceforge.net - My pet project
http://uberhackers.dhs.org - My personal website

./configure --prefix=/dev/mocha --enable-caffeine




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