~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.GtkCore/libstetic/wrapper/Scale.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2011-06-27 17:03:13 UTC
  • mto: (1.8.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: james.westby@ubuntu.com-20110627170313-6cvz3s19x6e9hqe9
ImportĀ upstreamĀ versionĀ 2.5.92+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
                public override void Wrap (object obj, bool initialized)
8
8
                {
9
9
                        base.Wrap (obj, initialized);
10
 
                        ((Gtk.Scale)Wrapped).Adjustment.AddNotification (AdjustmentNotifyHandler);
 
10
                        foreach (string property in Range.adjustmentProperties)
 
11
                                ((Gtk.Scale)Wrapped).Adjustment.AddNotification (property, AdjustmentNotifyHandler);
11
12
                }
12
13
 
13
14
                public override void Dispose ()
14
15
                {
15
 
                        ((Gtk.Scale)Wrapped).Adjustment.RemoveNotification (AdjustmentNotifyHandler);
 
16
                        foreach (string property in Range.adjustmentProperties)
 
17
                                ((Gtk.Scale)Wrapped).Adjustment.RemoveNotification (property, AdjustmentNotifyHandler);
16
18
                        base.Dispose ();
17
19
                }
18
20