X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=equipment.c;h=5d5a3546cc7f090116c2372419e26089dce69a8b;hb=a817f4b547b4193d31154fd0ff7f5190ccae76a5;hp=b9b9259b5a8cd0631816842e95d513e14d1066e3;hpb=9cf8d98711dff888f5bfa8efd52ca7b8cf8bfa07;p=ext%2Fsubsurface.git diff --git a/equipment.c b/equipment.c index b9b9259..5d5a354 100644 --- a/equipment.c +++ b/equipment.c @@ -1,3 +1,13 @@ +/* equipment.c */ +/* creates the UI for the equipment page - + * controlled through the following interfaces: + * + * void show_dive_equipment(struct dive *dive) + * void flush_dive_equipment_changes(struct dive *dive) + * + * called from gtk-ui: + * GtkWidget *equipment_widget(void) + */ #include #include #include @@ -6,6 +16,7 @@ #include "dive.h" #include "display.h" +#include "display-gtk.h" #include "divelist.h" struct cylinder_widget { @@ -238,6 +249,7 @@ static void apply_cb(GtkButton *button, gpointer data) for (i = 0; i < MAX_CYLINDERS; i++) record_cylinder_changes(dive->cylinder+i, gtk_cylinder+i); + mark_divelist_changed(TRUE); flush_divelist(dive); }