Re: Re: Re: Re: Getting a Cairo context

2015-03-25 Thread Emmanuele Bassi
Hi; On 25 March 2015 at 14:49, Sergei Naumov wrote: > >> 25.03.2015, 18:09:41 пользователь Emmanuele Bassi (eba...@gmail.com) >> написал: >> >> > This is going >> > to be my setup draw (axes, tickmarks, etc). Then because I use >> > g_timeout_add_seconds() to fire up the thread, I'd have to chang

RE: Re: Re: Re: Getting a Cairo context

2015-03-25 Thread Sergei Naumov
25.03.2015, 18:09:41 пользователь Emmanuele Bassi (eba...@gmail.com) написал: > This is going > to be my setup draw (axes, tickmarks, etc). Then because I use > g_timeout_add_seconds() to fire up the thread, I'd have to change it to > something like that Why are you using a timeout to fire of

Re: Re: Re: Getting a Cairo context

2015-03-25 Thread Emmanuele Bassi
Hi; On 25 March 2015 at 13:45, Sergei Naumov wrote: >> 1. create the widget instance >> 2. realize it >> 3. create a similar Cairo surface from the GdkWindow of the widget >> 4. store Cairo surface on the widget instance; you can use a >> subclass or g_object_set_data(), with a p

RE: Re: Re: Getting a Cairo context

2015-03-25 Thread Sergei Naumov
24.03.2015, 18:59:07 пользователь Emmanuele Bassi (eba...@gmail.com) написал:   1. create the widget instance   2. realize it   3. create a similar Cairo surface from the GdkWindow of the widget   4. store Cairo surface on the widget instance; you can use a subclass or g_object_set_dat