[Gtk-sharp-list] System.Timer, Thread and notification icon.

lordphoenix lordphoenix at free.fr
Tue May 19 16:25:24 EDT 2009


Hi all,
I'm working on an notification application as client for a web
application. I'm using System.Timer to make verification at precise
interval. I would like to change notification icon according to result
of verification but I've some thread problem when I try to get acess to
interface element from Elapsed method of Timer. 
According to MSDN documentation I must put an element of interface in
property SynchronizingObject of timer. They give WindowsForm as example
but of course I don't have one as I'm using Gtk.

So I really don't know what to do if someone could have any idea it
would be helpful.
If you want see the code you will find it here
http://svn.codingteam.net/ttnotify/trunk/tt-notify/Main.cs

PS : Sorry for my bad English I'm French and I don't speak it very
often. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20090519/abe57470/attachment.bin 


More information about the Gtk-sharp-list mailing list