Re: Bring a widget to the foreground

2011-01-04 Thread Jaroslav Šmíd
Don't do that. Fixed size buffers are evil for string formatting. You better use g_strdup_printf even though this would lead to reallocations. But much better then end up with cropped text. On 01/02/2011 10:00 PM, jcup...@gmail.com wrote: On 2 January 2011 15:39, John

Re: Bring a widget to the foreground

2011-01-04 Thread jcupitt
I agree, I was just trying to keep it simple. On Tuesday, 4 January 2011, Jaroslav Šmíd jardas...@gmail.com wrote: Don't do that. Fixed size buffers are evil for string formatting. You better use g_strdup_printf even though this would lead to reallocations. But much better then end up with

Re: resetting timeout source

2011-01-04 Thread Sam Spilsbury
On Wed, Jan 5, 2011 at 5:48 AM, Jaroslav Šmíd jardas...@gmail.com wrote: Well, I cannot find anything in glib. If you use linux, you can use timerfd_create() to create pollable timer, create new GSource, attach the descriptor and you got your timer. Set intervals to zero to stop it, descriptor