GtkD: Best way to get TreeStore out of TreeView.Model

2013-06-11 Thread Alex Horvat
I'm trying to get a TreeStore object back out of a TreeView in GtkD. The reason for this is so that I can change the value of a cell in the TreeView - in this case changing one image for another. I can't use a TreeModel for this as it does not have a setValue function. I've got this workin

Re: GtkD: Best way to get TreeStore out of TreeView.Model

2013-06-11 Thread Alex Horvat
On Tuesday, 11 June 2013 at 17:41:59 UTC, Mike Wey wrote: On 06/11/2013 05:56 PM, Alex Horvat wrote: TreeStore store = cast(TreeStore)tvTreeView.getModel(); In this case store == null I think that one should work, how are you setting/creating the TreeStore? tvTreeView.setModel(CreateModel

Re: GtkD: Best way to get TreeStore out of TreeView.Model

2013-06-12 Thread Alex Horvat
On Wednesday, 12 June 2013 at 21:44:55 UTC, Mike Wey wrote: On 06/11/2013 07:55 PM, Alex Horvat wrote: On Tuesday, 11 June 2013 at 17:41:59 UTC, Mike Wey wrote: On 06/11/2013 05:56 PM, Alex Horvat wrote: TreeStore store = cast(TreeStore)tvTreeView.getModel(); In this case store == null I

Re: GtkD: Best way to get TreeStore out of TreeView.Model

2013-06-16 Thread Alex Horvat
On Sunday, 16 June 2013 at 18:22:47 UTC, Mike Wey wrote: On 06/13/2013 06:14 AM, Alex Horvat wrote: On Wednesday, 12 June 2013 at 21:44:55 UTC, Mike Wey wrote: On 06/11/2013 07:55 PM, Alex Horvat wrote: On Tuesday, 11 June 2013 at 17:41:59 UTC, Mike Wey wrote: On 06/11/2013 05:56 PM, Alex

Re: GtkD: Best way to get TreeStore out of TreeView.Model

2013-06-17 Thread Alex Horvat
On Monday, 17 June 2013 at 17:52:38 UTC, Mike Wey wrote: On 06/17/2013 04:44 AM, Alex Horvat wrote: On Sunday, 16 June 2013 at 18:22:47 UTC, Mike Wey wrote: On 06/13/2013 06:14 AM, Alex Horvat wrote: On Wednesday, 12 June 2013 at 21:44:55 UTC, Mike Wey wrote: On 06/11/2013 07:55 PM, Alex

Re: GtkD: Best way to get TreeStore out of TreeView.Model

2013-06-17 Thread Alex Horvat
Just upgraded to dmd 2.063.2 - no difference

Re: GtkD: Best way to get TreeStore out of TreeView.Model

2013-06-19 Thread Alex Horvat
I seem to have missed a few cases in the last commit, would you mind trying again? https://github.com/gtkd-developers/GtkD/commit/7e95380bbb4f569c95fc9435711e1f2ec73122fe Sorry, no changes - still getting the same errors as before.

Re: GtkD: Best way to get TreeStore out of TreeView.Model

2013-06-20 Thread Alex Horvat
On Thursday, 20 June 2013 at 17:44:18 UTC, Mike Wey wrote: On 06/20/2013 07:53 AM, Alex Horvat wrote: I seem to have missed a few cases in the last commit, would you mind trying again? https://github.com/gtkd-developers/GtkD/commit/7e95380bbb4f569c95fc9435711e1f2ec73122fe Sorry, no

Do threads 'end' themselves using core.thread?

2013-07-20 Thread Alex Horvat
If I use core.thread.Thread to create a new thread associated to a function like this: Thread testThread = new Thread(&DoSomething); Will the testThread dispose of itself after DoSomething() completes, or do I need to join/destroy/somethingelse testThread?

Re: Do threads 'end' themselves using core.thread?

2013-07-20 Thread Alex Horvat
On Saturday, 20 July 2013 at 20:36:29 UTC, Ali Çehreli wrote: On 07/20/2013 12:34 PM, Alex Horvat wrote: > If I use core.thread.Thread to create a new thread associated to a > function like this: > > Thread testThread = new Thread(&DoSomething); > > Will the testThread d

Re: Do threads 'end' themselves using core.thread?

2013-07-22 Thread Alex Horvat
On Sunday, 21 July 2013 at 15:30:06 UTC, Ali Çehreli wrote: On 07/20/2013 09:43 PM, Ali Çehreli wrote: > When the parent thread terminates the child processes terminate as well. I am wrong there: What I said above is true for the main program thread. When the main program terminates, its threa

Re: Do threads 'end' themselves using core.thread?

2013-07-22 Thread Alex Horvat
When a detached thread terminates, its resources are auto- matically released back to the system:" Sounds like I can call Thread.getThis().thread_detachThis() from within DelayedHideTitle() and that will make the thread detached and therefore it will destroy itself properly. Or, if tha

Re: Do threads 'end' themselves using core.thread?

2013-07-22 Thread Alex Horvat
On Monday, 22 July 2013 at 16:58:00 UTC, Sean Kelly wrote: On Jul 22, 2013, at 9:45 AM, "Alex Horvat" wrote: When a detached thread terminates, its resources are auto- matically released back to the system:" Sounds like I can call Thread.getThis().thread_detachThis