[Gtk-sharp-list] cannot find Runtime.DispatchService.GuiDispatch
Adam Tauno Williams
awilliam at whitemice.org
Thu Dec 10 09:19:23 EST 2009
On Thu, 2009-12-10 at 04:45 -0800, dkarantonis wrote:
> Hi,
> i would like to create a secondary thread that updates the GUI, so i read
> that i have to use the Runtime.DispatchService.GuiDispatch(). The problem is
> that i cannot find it. I am using Mono 2 and gtk-sharp 2.12.00.
> Any ideas?
Have you looked at
<http://www.mono-project.com/Responsive_Applications>?
I'd recommend using Gtk.Application.Invoke to have the background thread
push GUI mod'ing code to the main loop.
static void ThreadRoutine ()
{
LargeComputation ();
Gtk.Application.Invoke (delegate {
label.Text = "Done";
});
}
--
OpenGroupware developer: awilliam at whitemice.org
<http://whitemiceconsulting.blogspot.com/>
OpenGroupare & Cyrus IMAPd documenation @
<http://docs.opengroupware.org/Members/whitemice/wmogag/file_view>
More information about the Gtk-sharp-list
mailing list