Signal blocking
- From: Arne Caspari <arne datafloater de>
- To: gtk-app-devel-list gnome org
- Subject: Signal blocking
- Date: Thu, 05 Jan 2006 14:26:04 +0100
Hi!
I want to block the emission of the "value_changed" signal when I call
gtk_range_set_value( ... )
My code so far is roughly:
/********************************************************************/
handler_id = g_signal_connect( GTK_RANGE( widget ) , "value_changed",
cb_func, data );
.
.
.
g_signal_handler_block( widget, handler_id );
gtk_range_set_value( GTK_RANGE( widget ), .... );
g_signal_handler_unblock( widget, handler_id );
g_signal_stop_emission_by_name( widget, "value_changed" );
/********************************************************************/
But the value_changed callback is called anyways. How do I temporarly
disable the signal handler?
Thanks,
/Arne
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]