Re: connecting a callback to a boolean value



On Sun, 2005-04-17 at 09:11 +0200, tc6 wrote:
> unfortunately no widget causes the boolean to change its value. Indeed 
> it is gnet_udp_socket_has_packet return value.
> 
> Any idea about how this function may call a callback when changing value?

if(result)
  signal_your_sigc_signal.emit(your_signal_parameters);

See the libsigc++ documentation for more help on creating your own
signals.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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