Re: Disable ToolButtons



On Sun, 2009-05-17 at 15:03 -0500, Adrián Ortega wrote:
> I'm making a text editor and I have some Gtk::ToolButtons on it. What 
> I'm trying to do is to enable/disable them, e.g. when nothing has been 
> typed on the text field the Save button is disabled, like grayed out.. I 
> think, (not hidden) so when something is typed I want the Save 
> Gtk::ToolButton to be enabled. I know this question might be silly but 
> I've searching and I haven't found the answer in the reference.
> 
> What method can I use to enable/disable the buttons, but keeping them in 
> the Tool bar so you can see them all the time?
> 
> Thanks for your help.
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list

void Gtk::Widget::set_sensitive(bool sensitive = true)

Krzesimir Nowak



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