Re: Delay time to spawn new threads?

2013-11-27 Thread David Buchan
David Buchan wrote: > Hi Michael, > > My 32-bit, GTK+2 version does > >   // Secure glib >   if (!g_thread_supported ()) { >     g_thread_init (NULL); >   } > > at the beginning, and then the thread is spawned via: > > on_button1_clicked (GtkButton *button1, MyData *data) > { >   GThread *t

Re: Delay time to spawn new threads?

2013-11-27 Thread David Buchan
David Buchan wrote: > Hi Michael, > > My 32-bit, GTK+2 version does > >   // Secure glib >   if (!g_thread_supported ()) { >     g_thread_init (NULL); >   } > > at the beginning, and then the thread is spawned via: > > on_button1_clicked (GtkButton *button1, MyData *data) > { >   GThread *t

Re: GTK Socket and reparenting

2013-11-27 Thread Bernhard Schuster
Did you try to add an additional reference to your widget? (i.e. explicitly call g_object_ref (your_widget) ) On Tue, Nov 26, 2013 at 3:18 PM, Michal Fizek wrote: Actually Gtk.Socket is usable, but the window, that is plugged into the socket gets destroyed(like if Gtk.Plug() was plugged into

Re: GTK Socket and reparenting

2013-11-27 Thread Denis Linvinus
i'm not sure that understand you correctly but, try to return true on connect event of the socket. for example var sock = new Gtk.Socket(); sock.plug_removed.connect(()=>{ return true;//important! allow reuse of socket }); 2013/11/26 Michal Fizek > Hi, > i have a problem with GTK Socket

Re: Delay time to spawn new threads?

2013-11-27 Thread Chris Vine
On Wed, 27 Nov 2013 11:59:23 -0800 (PST) David Buchan wrote: > Hi Michael, > > My 32-bit, GTK+2 version does > >   // Secure glib >   if (!g_thread_supported ()) { >     g_thread_init (NULL); >   } > > at the beginning, and then the thread is spawned via: > > on_button1_clicked (GtkButton *but

Re: Delay time to spawn new threads?

2013-11-27 Thread Michael Torrie
On 11/27/2013 12:59 PM, David Buchan wrote: > Hi Michael, > > My 32-bit, GTK+2 version does > > // Secure glib > if (!g_thread_supported ()) { > g_thread_init (NULL); > } > > at the beginning, and then the thread is spawned via: > > on_button1_clicked (GtkButton *button1, MyData *data

Re: Delay time to spawn new threads?

2013-11-27 Thread David Buchan
Hi Michael, My 32-bit, GTK+2 version does   // Secure glib   if (!g_thread_supported ()) {     g_thread_init (NULL);   } at the beginning, and then the thread is spawned via: on_button1_clicked (GtkButton *button1, MyData *data) {   GThread *thread;   GError *error = NULL;   thread = g_thread_

Re: Delay time to spawn new threads?

2013-11-27 Thread Andrew Potter
On Wed, Nov 27, 2013 at 11:20 AM, David Buchan wrote: > Yes, I've tried the printf thing. It takes about 1.5 sec. Very strange. It will be hard to help you much further without an example program. If thread creation does in fact take so long on your platform, you can perhaps create the thread ah

Re: Delay time to spawn new threads?

2013-11-27 Thread Michael Torrie
On 11/27/2013 08:29 AM, David Buchan wrote: > I have written a program which spawns a new thread when the user > clicks a button. The new thread does something noticeable immediately > after starting, so I know when the thread has begun. What I mean is, > if I run that piece of code that is execute

Re: Delay time to spawn new threads?

2013-11-27 Thread David Buchan
Hi Andrew, Yes, I've tried the printf thing. It takes about 1.5 sec. Very strange. Dave From: Andrew Potter To: David Buchan Cc: gtk-app-devel-list list Sent: Wednesday, November 27, 2013 1:24 PM Subject: Re: Delay time to spawn new threads? On Wed,

Re: Delay time to spawn new threads?

2013-11-27 Thread Andrew Potter
On Wed, Nov 27, 2013 at 7:29 AM, David Buchan wrote: > I have written a program which spawns a new thread when the user clicks a > button. The new thread does something noticeable immediately after starting, > so I know when the thread has begun. What I mean is, if I run that piece of > code th

Delay time to spawn new threads?

2013-11-27 Thread David Buchan
I have written a program which spawns a new thread when the user clicks a button. The new thread does something noticeable immediately after starting, so I know when the thread has begun. What I mean is, if I run that piece of code that is executed as a new thread, but as a stand-alone program,

Re: GtkTreeView doesn't refresh

2013-11-27 Thread Jarosław Sobieszek
On Wed, 27 Nov 2013 14:19:37 +0100, Colomban Wendling wrote: > Le 27/11/2013 12:57, Jarosław Sobieszek a écrit : >> Hello, >> >> I'm trying to dynamically modify list based on some action. Program below >> should add 3 rows at the top and 3 rows at the bottom of the list for >> every >> click of

Re: GtkTreeView doesn't refresh

2013-11-27 Thread Colomban Wendling
Le 27/11/2013 12:57, Jarosław Sobieszek a écrit : > Hello, > > I'm trying to dynamically modify list based on some action. Program below > should add 3 rows at the top and 3 rows at the bottom of the list for every > click of the button. For some reason it doesn't work - I'm seeing partial > updat

Re: GtkTreeView doesn't refresh

2013-11-27 Thread Rafał Mużyło
On Wed, Nov 27, 2013 at 11:57:57AM +, Jarosław Sobieszek wrote: > Hello, > > I'm trying to dynamically modify list based on some action. Program below > should add 3 rows at the top and 3 rows at the bottom of the list for every > click of the button. For some reason it doesn't work - I'm seei

GtkTreeView doesn't refresh

2013-11-27 Thread Jarosław Sobieszek
Hello, I'm trying to dynamically modify list based on some action. Program below should add 3 rows at the top and 3 rows at the bottom of the list for every click of the button. For some reason it doesn't work - I'm seeing partial updates with random amount of data (only 2 top rows on first click,