mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
f9f1a5fe6b
commit
54919c1c4e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue