]> git.tdb.fi Git - ext/subsurface.git/commit
libdivecomputer integration: add a progress bar
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 12 Sep 2011 18:41:26 +0000 (11:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 12 Sep 2011 18:41:26 +0000 (11:41 -0700)
commitd45db9fac7b3d2ea0426a96158432f54d938f5c7
tree5acf98317d08b555eb0b09b701c56c0be24d0c1b
parentd5b7f7dc06827cab8dd57d6d373a08d6be111c79
libdivecomputer integration: add a progress bar

Instead of writing out the progress events, use them to update a real
progress bar.

Also, we need to handle gtk events while busy with the dive computer
reading.  That should *probably* be done with a threading model, because
libdivecomputer does seem to have some timing sensitivity - I'm getting
"failure to read memory block" if I make that loop do the standard

while (gtk_events_pending())
  gtk_main_iteration();

thing.  Besides, even if we did do that loop, it would still cause
problems when the libdivecomputer code is stuck reading a serial line
that doesn't respond or whatever.

But for now this ugly hack is "good enough" to get further.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
libdivecomputer.c