« Return to Thread: Update statusIcon gtk pixbuf

Update statusIcon gtk pixbuf

by SomeIrishGuy :: Rate this Message:

Reply to Author | View in Thread

private StatusIcon trayIcon;

in the constructor i have

Constructor
{
this.trayIcon = new StatusIcon(getStatusIconPixbuf());
......
}


private Pixbuf getStatusIconPixbuf() // returns a generated pixbuf
{
.......
}




this works fine, but i would like to be able to change the pixbuf
icon in the statusmenu at periodical intervals using a timer

i seems to cause havok though, as the menu no longer draws correctly and the pixbuf just goes blank

i presume i've done something to the main thread (cross invocation exception), but i cant find any documentation on how to invoke a change managed by a delegate for this event.

Thanks.
Dave.

mono 2.4
gtk#2.12.8

 « Return to Thread: Update statusIcon gtk pixbuf