[Gtk-sharp-list] cannot find Runtime.DispatchService.GuiDispatch

dkarantonis dkarantonis at soft4real.com
Thu Dec 10 16:06:06 EST 2009




Adam Tauno Williams wrote:
> 
> 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>
> 
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
> 
> 


thanks
-- 
View this message in context: http://old.nabble.com/cannot-find-Runtime.DispatchService.GuiDispatch-tp26726577p26734503.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.



More information about the Gtk-sharp-list mailing list