Re: [gtk-list] Desactivate Widget



On Fri, 26 Feb 1999, IKSAL Sebastien wrote:

> Hello,
> 
> Thanks for those who helps me about callbacks.
> 
> I want to desactivate widgets (like buttons and menu) in some
> configurations of my Interface,
> but i don(t want to hide them.
> I found the function gtk_widget_activate, but no functions to
> desactivate them??

Use gtk_widget_set_sensitive(GtkWidget *widget, gboolean sensitive)

sensitive =  TRUE: widgets are active and respond to events
          = FALSE: inactive, look shaded 

Nils
-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nils Philippsen                  @college: nils@fht-esslingen.de
Vogelsangstrasse 115             @home:    nils@wombat.dialup.fht-esslingen.de
D 70197 Stuttgart                phone:    +49-711-6599405
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Lottery is a tax on people who are bad at math.



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