diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-11-11 17:12:09 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-11-11 17:18:14 +0100 |
commit | 502e2b0e86a8c961b82ea2824e9f3fd82e83eb72 (patch) | |
tree | 44980db2ad847f470a58103b1b1715e07774d2f4 /gtk-gui.c | |
parent | b304562fa89aa67fd5639d6c14c6e12472287515 (diff) | |
download | subsurface-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |