~cszikszoy/do-plugins/pastebin

« back to all changes in this revision

Viewing changes to GNOME-Session/SessionCommandItem.cs

  • Committer: Christopher James Halse Rogers
  • Date: 2008-02-11 23:34:16 UTC
  • Revision ID: chalserogers@gmail.com-20080211233416-8vtjulsmfhsvblgv
The Great Copyright Push continues
Add AUTHORS, COPYING & COPYRIGHT
Add license headers to Epiphany & EyeOfGNOME plugins
Add license headers to Template plugins

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 */
20
20
 
21
21
using System;
22
 
using System.Threading;
23
22
 
24
23
using Do.Universe;
25
24
 
29
28
        {
30
29
                public delegate void RunDelegate ();
31
30
 
32
 
                const int SessionItemRunDelay = 500;
33
 
 
34
31
                RunDelegate run;
35
32
                string name, description, icon;
36
33
 
49
46
 
50
47
                public virtual void Run ()
51
48
                {
52
 
                        new Thread ((ThreadStart)
53
 
                                delegate {
54
 
                                        Thread.Sleep (SessionItemRunDelay);
55
 
                                        run ();
56
 
                                }
57
 
                        ).Start ();
 
49
                        run ();
58
50
                }
59
51
        }
60
52
}