From 9cf8d98711dff888f5bfa8efd52ca7b8cf8bfa07 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Tue, 20 Sep 2011 10:06:24 -0700 Subject: 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 --- equipment.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'equipment.c') 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; } -- cgit v1.2.3-70-g09d2