diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-20 10:06:24 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-20 10:06:24 -0700 |
commit | 9cf8d98711dff888f5bfa8efd52ca7b8cf8bfa07 (patch) | |
tree | 0132709103048b69575cbc428eba6dd6f408000f /equipment.c | |
parent | eee34232dbbd24b7b3db9e44672e240db2db50e9 (diff) | |
download | subsurface-9cf8d98711dff888f5bfa8efd52ca7b8cf8bfa07.tar.gz |
Make 'struct DiveList' entirely internal to divelist.c
Passing it around is just annoying, and we only ever have one. Let's
not burden all the users with the silly thing.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'equipment.c')
-rw-r--r-- | equipment.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/equipment.c b/equipment.c index 5d277fe1a..b9b9259b5 100644 --- a/equipment.c +++ b/equipment.c @@ -238,7 +238,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); - flush_divelist(&dive_list, dive); + flush_divelist(dive); } static void cancel_cb(GtkButton *button, gpointer data) @@ -416,8 +416,8 @@ GtkWidget *equipment_widget(void) gtk_box_pack_start(GTK_BOX(hbox), apply, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(hbox), cancel, FALSE, FALSE, 0); - g_signal_connect(apply, "clicked", G_CALLBACK(apply_cb), dive_list.model); - g_signal_connect(cancel, "clicked", G_CALLBACK(cancel_cb), dive_list.model); + g_signal_connect(apply, "clicked", G_CALLBACK(apply_cb), NULL); + g_signal_connect(cancel, "clicked", G_CALLBACK(cancel_cb), NULL); return vbox; } |