From: Linus Torvalds Date: Tue, 6 Sep 2011 03:50:52 +0000 (-0700) Subject: Repaint the dives in dive_list_update_dives() instead of in callers X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;ds=inline;h=f7a36cfefd15a46494adfbf237f2db7f97d1fb1b;p=ext%2Fsubsurface.git Repaint the dives in dive_list_update_dives() instead of in callers Each caller ends up needing it, and I missed another one. So rather than update the other caller, just do it in dive_list_update_dives() and we can stop worrying about it. Signed-off-by: Linus Torvalds --- diff --git a/divelist.c b/divelist.c index 5dc4565..a6ffda8 100644 --- a/divelist.c +++ b/divelist.c @@ -67,6 +67,7 @@ void dive_list_update_dives(struct DiveList dive_list) { gtk_list_store_clear(GTK_LIST_STORE(dive_list.model)); fill_dive_list(GTK_LIST_STORE(dive_list.model)); + repaint_dive(); } struct DiveList dive_list_create(void) diff --git a/main.c b/main.c index df966a7..14c4f26 100644 --- a/main.c +++ b/main.c @@ -166,7 +166,6 @@ static void file_open(GtkWidget *w, gpointer data) } g_slist_free(filenames); report_dives(); - repaint_dive(); dive_list_update_dives(dive_list); } gtk_widget_destroy(dialog);