From 54919c1c4ec94cd21150c5320fa0956d13df5904 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 9 Dec 2012 16:16:35 -0800 Subject: 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 --- statistics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/statistics.c b/statistics.c index a946d500b..63079a51c 100644 --- a/statistics.c +++ b/statistics.c @@ -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); } -- cgit v1.2.3-70-g09d2