[FredLug] gobject timeout problem solved!
stickster at gmail.com
Mon Dec 20 22:12:19 EST 2010
Ted helped me find a solution to something I wanted to do with my
PulseCaster program. Specifically, I wanted to create a tray icon at
some point in the workflow that would have a tooltip showing you how
long your recording was going on. You could hover over the tray icon
with the mouse, and see something like "Recording: 3:05".
I found out the following after our meeting:
* the gobject.timeout_add(timeout, callback) function is repetitive --
that is, the timer will run the <callback> every <timeout>
* a True return value from the callback function results in the
timeout being reset to run again; a False return value means the
timeout is canceled
I got it working perfect later on tonight! Thanks again for finding
that function Ted.
More information about the FredLug