Re: disabling buttons



On Tue, 2004-11-02 at 20:42, Ian Strascina wrote:
Is there anyway to disable a GTK button once it has been pressed (and 
re-enabled upon other conditions) similar to 
javax.swing.AbstractButton.setEnabled(boolean)...???  

gtk_widget_set_sensitive( button, FALSE );

You can enable it again with:
gtk_widget_set_sensitive( button, TRUE );

-- 
Iago Rubio



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