[Gtk-sharp-list] Dealing with threads...
Moritz Angermann
moritz.angermann@gmx.net
Tue, 16 Mar 2004 17:14:43 +0100
Hi ML,
I've been going though the issue of finding a good way
to deal with long running processes.
As far as I have come it seems to be the best to just start
a thread. And let it call ThreadNotify( new ReadyEvent( new
argumentedEvent( args ).update ) );
but within this, the args have to have a pointer ( reference )
to the widget to be updated.
Now if i want to update more than just one widget, this would
get really messy.
An example of how to use Threads and ThreadNotify can be found
here: http://mdot.mine.nu/~piccell/TreeViewTest.tar.gz
But this one is only passing the TreeStore along.
So for every widget I'd like to pass to the thread I'd need to add a
ref.
It would be cooler If I'd just have to ref for example the MainWindow.
And than from there get all the client widgets. But there seems not to
be any way of doing something like : window.GetClientByName( "name" );
Well, I'd much appreciate any Ideas on how to solve this in a clean
way.
kindest regards,
-mo
--
---------------- contact info ----------------
Moritz Angermann moritz.angermann@gmx.net
Liquid:Mint www.liquidmint.org
Mobile +49 (0) 160 9197 5880
Home +49 (0) 4322 75 12 66