summaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-09-20 12:30:58 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-09-20 12:30:58 -0700
commite8578ad9c9709778ec368a604bc7a53bf8757308 (patch)
tree3f375f924841f30d4ea9f12e9b05ce300ef6acf5 /info.c
parent574d4d4facb83ee5505a988f5dc5830602fc8048 (diff)
parenta8e2fd10c7845496e42e6f5b2f4d133d3cf5640b (diff)
downloadsubsurface-e8578ad9c9709778ec368a604bc7a53bf8757308.tar.gz
Merge branch 'divetrip-rewrite' of git://github.com/torvalds/subsurface
Merge the dive trip rewrite by Dirk Hohndel. This just merges the dive trip changes with the timestamp handling changes. There were multiple small data conflicts, along with some newly added 'time_t' cases in the dive trip handling that needed to be converted to 'timestamp_t' along the way. * 'divetrip-rewrite' of git://github.com/torvalds/subsurface: Convert FIND_TRIP into function Partial rewrite of the dive trip code Check if trip is NULL before calling DIVE_TRIP
Diffstat (limited to 'info.c')
-rw-r--r--info.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/info.c b/info.c
index 40e0af278..96e270459 100644
--- a/info.c
+++ b/info.c
@@ -445,7 +445,7 @@ static void save_dive_info_changes(struct dive *dive, struct dive *master, struc
}
}
-static void dive_trip_widget(GtkWidget *box, struct dive *trip, struct dive_info *info)
+static void dive_trip_widget(GtkWidget *box, dive_trip_t *trip, struct dive_info *info)
{
GtkWidget *hbox, *label;
char buffer[80] = "Edit trip summary";
@@ -537,7 +537,7 @@ void update_equipment_data(struct dive *dive, struct dive *master)
memcpy(dive->weightsystem, master->weightsystem, WS_BYTES);
}
-gboolean edit_trip(struct dive *trip)
+gboolean edit_trip(dive_trip_t *trip)
{
GtkWidget *dialog, *vbox;
int success;
@@ -571,10 +571,8 @@ gboolean edit_trip(struct dive *trip)
if (old_text)
g_free(old_text);
}
- if (changed) {
+ if (changed)
mark_divelist_changed(TRUE);
- flush_divelist(trip);
- }
}
gtk_widget_destroy(dialog);
return changed;