Rename on_delete function in statistics.c

We made the one in gtk-gui.c a global function and now had a clash with
the static one in statistics.c

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2012-12-09 16:16:35 -08:00
parent f9f1a5fe6b
commit 54919c1c4e

View file

@ -317,7 +317,7 @@ void clear_statistics()
yearly_tree = NULL;
}
static gboolean on_delete(GtkWidget *window, GdkEvent *event, gpointer data)
static gboolean stat_on_delete(GtkWidget *window, GdkEvent *event, gpointer data)
{
clear_statistics();
gtk_widget_destroy(window);
@ -382,7 +382,7 @@ void show_yearly_stats()
update_yearly_stats();
g_signal_connect (G_OBJECT (window), "key_press_event", G_CALLBACK (key_press_event), NULL);
g_signal_connect (G_OBJECT (window), "delete-event", G_CALLBACK (on_delete), NULL);
g_signal_connect (G_OBJECT (window), "delete-event", G_CALLBACK (stat_on_delete), NULL);
gtk_widget_show_all(window);
}