summaryrefslogtreecommitdiffstats
path: root/display-gtk.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-05-02 17:40:39 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-05-02 17:42:58 -0700
commite7a70b6ae821e6a178957e2814406ac387b990ea (patch)
tree968dfa2339a0d64225d9f037fba1084a8585a736 /display-gtk.h
parent26b90cbfa8d289c7b05a3704a35d9452cf4a235f (diff)
downloadsubsurface-e7a70b6ae821e6a178957e2814406ac387b990ea.tar.gz
Show dive import text updates in the progress bar
Instead of using printf() to print the string updates ("Parsing sample data" etc), introduce a function to show those strings in the graphical progress bar itself. Subsurface hasn't been a text-mode application in a long time ;) This partially fixes the second todo entry from commit b0ba22a06879 ("Show dive import error messages in the import dialog") and generally makes for a more helpful import - at least for the largely error-free cases. Sadly, the messages that really come from within libdivecomputer itself (like "suunto_vyper2.c:193: Failed to receive the answer.") when things go really wrong are not caught. libdivecomputer does have a notion of a logfile (set with "message_set_logfile()"), but that ends up being really inconvenient. Maybe we could use some pipe setup or something. Oh well. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'display-gtk.h')
-rw-r--r--display-gtk.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/display-gtk.h b/display-gtk.h
index 5a76edce2..efbf3fd87 100644
--- a/display-gtk.h
+++ b/display-gtk.h
@@ -57,6 +57,7 @@ extern void import_dialog(GtkWidget *, gpointer);
extern void report_error(GError* error);
extern int process_ui_events(void);
extern void update_progressbar(progressbar_t *progress, double value);
+extern void update_progressbar_text(progressbar_t *progress, const char *text);
extern GtkWidget *dive_profile_widget(void);
extern GtkWidget *dive_info_frame(void);