Re: Delay time to spawn new threads?

2013-11-28 Thread Chris Vine
On Thu, 28 Nov 2013 14:17:00 + Emmanuele Bassi wrote: > GSourceFunc functions should return G_SOURCE_CONTINUE or > G_SOURCE_REMOVE; those are aliases for boolean values, but are much, > much clearer to read. I suggest you put a bug in bugzilla. The documentation for the main loop functions s

Re: Delay time to spawn new threads?

2013-11-28 Thread Emmanuele Bassi
hi; On 28 November 2013 11:09, Chris Vine wrote: > By the way, why not have your idle function return FALSE instead of > EXIT_SUCCESS? Both evaluate to 0, but returning FALSE is clearer. > EXIT_SUCCESS is a macro intended to provide a process return value > indicating successful execution of the

Re: Delay time to spawn new threads?

2013-11-28 Thread David Buchan
On Wed, 27 Nov 2013 19:32:26 -0800 (PST) David Buchan wrote: > I removed the call to g_thread_init() and it still works fine! Great > catch there. You can include it with glib >= 2.32 - it is a no-op then.  You should include it if you want your code to be able to run on earlier as well as late

grab mouse event

2013-11-28 Thread Michal Fizek
Hi i have a problem with GTK application. I create a Gtk.Socket within my application and embed an urxvt terminal inside it(urxvt can embed itself into provided window id, which i get from socket.get_id()) .. but now i want to catch signal of mouse event in this embedded window and im not able

Re: Delay time to spawn new threads?

2013-11-28 Thread Chris Vine
On Wed, 27 Nov 2013 19:32:26 -0800 (PST) David Buchan wrote: > I removed the call to g_thread_init() and it still works fine! Great > catch there. You can include it with glib >= 2.32 - it is a no-op then. You should include it if you want your code to be able to run on earlier as well as later

Re: Delay time to spawn new threads?

2013-11-28 Thread Chris Vine
On Thu, 28 Nov 2013 09:11:45 + Osmo Antero wrote: > My audio-recorder that was based on GTK2 had some threads that also > modified the GUI-elements. I had to call > GDK_THREADS_ENTER > / > GDK_THREADS_LEAVE

Re: Delay time to spawn new threads?

2013-11-28 Thread Osmo Antero
My audio-recorder that was based on GTK2 had some threads that also modified the GUI-elements. I had to call GDK_THREADS_ENTER / GDK_THREADS_LEAVE