Re: deactivate buttons



If you want just to deactivate the buttons (you may click on this) you
may use the g_signal_connect for connecting the signal for the button
and the g_signal_handler_disconnect for deactivate this.

e.g

int sigHandler;
button instance;

/* you may use the button */
sigHandler= g_signal_connect(instance, detailed_signal, c_handler, data);

/* you can click on button but this doesn't do anything */
g_signal_handler_disconnect(instance, sigHandler);

There are a lot of functions related on those. The GTK functions are
deprecated and "should not be used in newly-written code". You may see
block functions too. Look at
http://developer.gnome.org/doc/API/2.0/gobject/gobject-Signals.html

André Pedralho
Instituto Nokia de Tecnologia - Manaus - Brasil

On 4/27/05, srinivas <srinivas comodo com> wrote:
hi ;

i need samples for deactivating buttons. initially the buttons have to
be deactivated, only when the activate button pressed the deactivated
buttons have to activate. how can i can do this using gtk. any samples
available for this.

thanks;

vasu.

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



-- 
André Pedralho
Bachelor in Computer Science
Instituto Nokia de Tecnologia



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