Well, without knowing exactly what you are trying to do, my suggestion is to go back to what is changing the bool variable - is it a button, a screen close, table update, etc and tie a callback to that, then in your callback, if (bool == true) {........}
On Saturday 16 April 2005 12:35, tc6 wrote: > Hello, > > I'm trying to connect a callback function to a boolean value, ie the > callback has to be called each time a variable equals true... > It would be really helpful if someone has some code example... I spend a > lot of time tring to use add_watch() with giochannel (or > Glib::iochannel) from an udp socket of gnet library (if someone manages > to do something with it, i'm really interested). So I decided to use : > "gboolean gnet_udp_socket_has_packet > <http://www.gnetlibrary.org/docs/gnet-udp.html#gnet-udp-socket-has-packet> > (...)" with gtkmm signal handling ... > > Any other solutions are welcome > > thank you in advance > > _______________________________________________ > gtkmm-list mailing list > gtkmm-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtkmm-list -- John Taber, Ph.D. P.O. Box 71949 Salt Lake City, UT 84171 (801)440-2831 _______________________________________________ gtkmm-list mailing list gtkmm-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtkmm-list