diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-02 22:11:31 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-02 22:11:31 -0700 |
commit | e810d211a6235b504c98604e0288cf22b12ec1b8 (patch) | |
tree | 3c011b4b2fa91bf6e09d4132d541fe8743744f71 /dives/56.xml | |
parent | 38ccc152140d03b6df1de587a8887663886fff7b (diff) | |
download | subsurface-e810d211a6235b504c98604e0288cf22b12ec1b8.tar.gz |
Work around some gtk oddity with gtk_combo_box_entries and empty text
Setting the gtk_combo_box_entry test to th eempty string doesn't "take":
the old text remains. Which does all kinds of funky things when you
switch between dives, and the location (or buddy or divemaster) entry
contains some random stale entry from another dive.
This works around it by using a string with a single space in it
instead, and then removing the space when reading. Not pretty, and
certainly not correct, but it pinpoints the odd behavior. I'm sure
somebody will figure out what the magic gtk incantation is for this.
Also remove the never-used flags for whether the entries have changed.
They were designed to be set by change callbacks, but we never bothered
with it, and just always read the value of the entries instead.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'dives/56.xml')
0 files changed, 0 insertions, 0 deletions