diff options
author | Benjamin Otte <otte@redhat.com> | 2011-10-28 05:38:11 -0700 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-12-16 20:09:11 +0100 |
commit | d5e5ca3e2a035005f34551c2c6ed647d2e952e1b (patch) | |
tree | 8063fe04522f11b00e35e6c3c91ee7b4cf4fba29 /docs/tree-column-sizing.txt | |
parent | 7b51ca9a4749ce74671f2f903bf65304df786076 (diff) | |
download | gtk+-d5e5ca3e2a035005f34551c2c6ed647d2e952e1b.tar.gz |
filechooserentry: Reorganize function
Setter functions the way I code it look like this (in order):
1) Figure out if the value changed. If not, exit early.
2) Clear the old value (ie unref stuff, disconnect signals
3) Copy the new value
4) Set up things about the new value
This reorganization does that.
And by doing that, it even reduces the amount of code and the amount of
branches (and with it, nesting) needed.
Diffstat (limited to 'docs/tree-column-sizing.txt')
0 files changed, 0 insertions, 0 deletions