Check if chart needs to be saved upon close action

This commit is contained in:
Gergely Polonkai 2014-08-02 19:54:30 +02:00
parent 1c84845fa2
commit e2701396cc

View File

@ -154,12 +154,13 @@ ag_window_delete_event_callback(AgWindow *window,
static void static void
ag_window_close_action(GSimpleAction *action, ag_window_close_action(GSimpleAction *action,
GVariant *parameter, GVariant *parameter,
gpointer user_data) gpointer user_data)
{ {
AgWindow *window = user_data; AgWindow *window = AG_WINDOW(user_data);
// TODO: Save unsaved changes! if (ag_window_can_close(window, TRUE)) {
gtk_widget_destroy(GTK_WIDGET(window)); gtk_widget_destroy(GTK_WIDGET(window));
}
} }
static void static void