RE: How to activate and deactivate a ok button?



Simple, a button is derivative of a widget, use the function:

GtkWidget *disconnect = ...;
GtkWidget *connect = ...;

gtk_widget_set_sensitive(disconnect,TRUE);
gtk_widget_set_sensitive(connect,FALSE);

regards,

Martyn

-----Original Message-----
From: amudha sundaram [mailto:amuda_k yahoo com]
Sent: Wednesday, May 22, 2002 5:19 AM
To: gtk-app-devel-list gnome org
Subject: How to activate and deactivate a ok button?


Sorry if this has been covered before.

i have two buttons connect and disconnect.only when
connect is active disconnect should be active.
and connect should be deactivated when disconnect is
active.
How to make this to work ?

Thanks for any help.

__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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