Something bad happened to me.. :)
Not parametherized, but parameterized :)) . Possibly that's because of 'th'
in 'thread'...
So it should look like:


using Gtk;

namespace Gtk
{
    public delegate void ParameterizedReadyEvent<T> (T param);

    public class ParameterizedThreadNotify<T>
    {
        private ThreadNotify te;
        private ParameterizedReadyEvent<T> pre;
        private T param;

        public ParameterizedThreadNotify (ParameterizedReadyEvent<T> pre)
        {
            this.pre = pre;
            this.te = new ThreadNotify (this.ReadyEvent);
        }

        private void ReadyEvent ()
        {
            this.pre (this.param);
        }

        public void WakeupMain (T param)
        {
            this.param = param;
            this.te.WakeupMain ();
        }
    }
}

Sorry again.
-- 
Best regards,
Daniel Abramov aka Exception
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to