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

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.GtkCore/libstetic/editor/Flags.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:
37
37
 
38
38
                EnumDescriptor enm;
39
39
                Hashtable flags;
40
 
                Gtk.Tooltips tips;
41
40
                Gtk.Entry flagsLabel;
42
41
                string property;
43
42
 
62
61
                        {
63
62
                                Gtk.VBox vbox = new Gtk.VBox (true, 3);
64
63
 
65
 
                                tips = new Gtk.Tooltips ();
66
64
                                flags = new Hashtable ();
67
65
 
68
66
                                foreach (Enum value in enm.Values) {
71
69
                                                continue;
72
70
 
73
71
                                        Gtk.CheckButton check = new Gtk.CheckButton (eval.Label);
74
 
                                        tips.SetTip (check, eval.Description, eval.Description);
 
72
                                        check.TooltipText = eval.Description;
75
73
                                        uint uintVal = (uint) Convert.ToInt32 (eval.Value);
76
74
                                        flags[check] = uintVal;
77
75
                                        flags[uintVal] = check;
104
102
                {
105
103
                }
106
104
 
107
 
                public override void Dispose ()
108
 
                {
109
 
                        tips.Destroy ();
110
 
                        base.Dispose ();
111
 
                }
112
 
 
113
105
                public object Value {
114
106
                        get {
115
107
                                return Enum.ToObject (enm.EnumType, UIntValue);