~ubuntu-branches/ubuntu/lucid/monodevelop/lucid

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Core/MonoDevelop.Core/Properties.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-01-10 14:25:59 UTC
  • mfrom: (1.2.5 upstream) (1.3.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100110142559-sorji5exvk9tyknr
Tags: 2.2+dfsg-2
* debian/rules/remove_support_for_non_debian_functionality.patch:
  + Also fix monodevelop-core-addins.pc to remove links to the
    addins we remove in Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
                {
138
138
                        object old = Get<object> (key);
139
139
                        if (val == null) {
 
140
                                //avoid emitting the event if not necessary
 
141
                                if (old == null)
 
142
                                        return;
140
143
                                if (properties.ContainsKey (key)) 
141
144
                                        properties.Remove (key);
142
145
                        } else {
 
146
                                //avoid emitting the event if not necessary
 
147
                                if (val.Equals (old))
 
148
                                        return;
143
149
                                properties[key] = val;
144
150
                                if (!val.GetType ().IsClass ||(val is string)) {
145
151
                                        if (defaultValues.ContainsKey (key)) {