summaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-27 14:44:28 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-27 14:46:47 -0800
commit9e8aaad133736dfc35d8a5163befd7e7196a3b19 (patch)
tree873b2c2eb5a18ccb3e6c2b6f17d9f34230e42d99 /divelist.c
parent4c04fe531636dbb21efaa267283aef07248c7ccd (diff)
downloadsubsurface-9e8aaad133736dfc35d8a5163befd7e7196a3b19.tar.gz
When manually adding a dive allow user to set avg depth as well
So far we only allowed setting the max depth. This changes the layout of the entry widget and makes our helper function create_date_time_widget return the hbox in which it positions the time entry. I plan to reuse this later when allowing to edit the duration as well as the start date and time under certain circumstances. This is a small part of a feature request; see #75 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.c')
-rw-r--r--divelist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/divelist.c b/divelist.c
index 1c020afe4..4fa817d0a 100644
--- a/divelist.c
+++ b/divelist.c
@@ -1537,7 +1537,7 @@ static void edit_dive_from_path_cb(GtkWidget *menuitem, GtkTreePath *path)
static void edit_dive_when_cb(GtkWidget *menuitem, struct dive *dive)
{
- GtkWidget *dialog, *cal, *h, *m;
+ GtkWidget *dialog, *cal, *h, *m, *timehbox;
timestamp_t when;
guint yval, mval, dval;
@@ -1549,7 +1549,7 @@ static void edit_dive_when_cb(GtkWidget *menuitem, struct dive *dive)
when = dive->when;
utc_mkdate(when, &tm);
- dialog = create_date_time_widget(&tm, &cal, &h, &m);
+ dialog = create_date_time_widget(&tm, &cal, &h, &m, &timehbox);
gtk_widget_show_all(dialog);
success = gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT;