summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-11-11 17:12:09 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-11-11 17:18:14 +0100
commit502e2b0e86a8c961b82ea2824e9f3fd82e83eb72 (patch)
tree44980db2ad847f470a58103b1b1715e07774d2f4 /gtk-gui.c
parentb304562fa89aa67fd5639d6c14c6e12472287515 (diff)
downloadsubsurface-502e2b0e86a8c961b82ea2824e9f3fd82e83eb72.tar.gz
Add more data to our tool-tip display in the profile window
This shows the values for all the graphs that are shown (depth, temperature, tank pressure, pO2, pN2m pHe), but also correctly doesn't display them when they are turned off or no data is available (prior to this commit, tank pressure was always shown, even if no pressure samples were available for the dive). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 2434a57fc..17cfe9bf5 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -1332,7 +1332,7 @@ static gboolean profile_tooltip (GtkWidget *widget, gint x, gint y,
}
get_plot_details(gc, time, plot, sizeof(plot));
- snprintf(buffer, sizeof(buffer), " %d:%02d%c%s%c%s", time / 60, time % 60,
+ snprintf(buffer, sizeof(buffer), "@ %d:%02d%c%s%c%s", time / 60, time % 60,
*plot ? '\n' : ' ', plot,
*event ? '\n' : ' ', event);
gtk_tooltip_set_text(tooltip, buffer);