From f932123330becb25b24f48beec80594fa2d214a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=B6hler?= Date: Mon, 19 Nov 2007 00:16:11 +0000 Subject: [PATCH] #496023: Handle correct signal for closing the sx editor. BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16597 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome/dialog-sx-editor.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gnome/dialog-sx-editor.c b/src/gnome/dialog-sx-editor.c index 12ea54cb0b..63c17558eb 100644 --- a/src/gnome/dialog-sx-editor.c +++ b/src/gnome/dialog-sx-editor.c @@ -173,7 +173,7 @@ static void gnc_sxed_update_cal(GncSxEditorDialog *sxed); static void gnc_sxed_reg_check_close(GncSxEditorDialog *sxed); -static gint sxed_close_event( GtkDialog *dlg, gpointer ud ); +static gboolean sxed_delete_event( GtkWidget *widget, GdkEvent *event, gpointer ud ); static gboolean sxed_confirmed_cancel( GncSxEditorDialog *sxed ); @@ -1036,8 +1036,8 @@ scheduledxaction_editor_dialog_destroy(GtkObject *object, gpointer data) } static -gint -sxed_close_event( GtkDialog *dlg, gpointer ud ) +gboolean +sxed_delete_event( GtkWidget *widget, GdkEvent *event, gpointer ud ) { GncSxEditorDialog *sxed = (GncSxEditorDialog*)ud; @@ -1173,8 +1173,8 @@ gnc_ui_scheduled_xaction_editor_dialog_create(SchedXaction *sx, sxed_close_handler, sxed ); - g_signal_connect( sxed->dialog, "close", - G_CALLBACK(sxed_close_event), sxed ); + g_signal_connect( sxed->dialog, "delete_event", + G_CALLBACK(sxed_delete_event), sxed ); g_signal_connect( sxed->dialog, "destroy", G_CALLBACK(scheduledxaction_editor_dialog_destroy), sxed );