~ubuntu-branches/ubuntu/saucy/monodevelop/saucy-proposed

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/BusyEvaluatorDialog.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-09-10 16:54:48 UTC
  • mfrom: (19.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100910165448-0rybfk25zd4o9431
Tags: 2.4+dfsg-2
* debian/patches/inject_Mono.Debugger.Soft_source.patch,
  debian/patches/use_system_Mono.Debugger.Soft.patch,
  debian/control:
  + Build against system Soft Debugger, since we now have a new
    enough Mono to match MonoDevelop's required API

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
{
32
32
        public partial class BusyEvaluatorDialog : Gtk.Dialog
33
33
        {
34
 
                uint showAgainTimer;
35
 
                
36
34
                public BusyEvaluatorDialog ()
37
35
                {
38
36
                        this.Build ();
41
39
                public void UpdateBusyState (BusyStateEventArgs args)
42
40
                {
43
41
                        if (!args.IsBusy) {
44
 
                                if (showAgainTimer != 0) {
45
 
                                        GLib.Source.Remove (showAgainTimer);
46
 
                                        showAgainTimer = 0;
47
 
                                }
48
42
                                Hide ();
49
43
                        } else {
50
44
                                labelMethod.Text = args.Description;
51
 
                                if (showAgainTimer == 0)
52
 
                                        Show ();
 
45
                                Show ();
53
46
                        }
54
47
                }
55
48
                
62
55
                protected virtual void OnButtonOkClicked (object sender, System.EventArgs e)
63
56
                {
64
57
                        Hide ();
65
 
                        showAgainTimer = GLib.Timeout.Add (5000, delegate {
66
 
                                showAgainTimer = 0;
67
 
                                Show ();
68
 
                                return false;
69
 
                        });
70
58
                }
71
59
        }
72
60
}