]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Repaint the dives in dive_list_update_dives() instead of in callers
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Sep 2011 03:50:52 +0000 (20:50 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 Sep 2011 03:50:52 +0000 (20:50 -0700)
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 <torvalds@linux-foundation.org>
divelist.c
main.c

index 5dc45657b5ca096099753046277b3516873460b0..a6ffda8e8b9734cc8d934b6a35e7772dc3987479 100644 (file)
@@ -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 df966a7e8b2f9f8ad1d7220db8dc36d6528353fa..14c4f26fe2952e8a1ac4324584c86fac87edb18e 100644 (file)
--- 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);