[Gtk-sharp-list] thread question

underdog10@netcourrier.com underdog10@netcourrier.com
Fri, 18 Mar 2005 00:50:00 +0000


I already use thread in my app, but i would like to show more information =
in my progress dialog. The problem is than i would like to use batch list.=
 I order to refresh my dialog i use a Gtk.Timeout.
As long as my dialog look for information in a another class, there is no =
problem. But when in my thread, i want to access to the next job, i have n=
o idea on how to inform my dialog than i going to the next job because it =
is in the same class.
Can anyone help me?
Thanks.

public void Run ()
=7B
	Thread t1 =3D new Thread(new ThreadStart(f1));
	t1.Start();
	dialog.Run();
=7D

void f1()
=7B

	// FIRST BIG JOB =

        ...
        // Loop
	while (store.IterNext(ref iter))
	=7B
	  //Update=5FMy=5FVariable=5FFor=5FThe=5FNext=5FJob
          ...
	  // NEXT BIG JOB =

          ...
	=7D
	Gtk.Timeout.Remove(IDtimeout);
	dialog.Hide ();	=

=7D

-------------------------------------------------------------
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Tool=
bar...
Web/Wap : www.netcourrier.com
T=E9l=E9phone/Fax : 08 92 69 00 21 (0,34 =80 TTC/min)
Minitel: 3615 NETCOURRIER (0,16 =80 TTC/min)