mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
#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
This commit is contained in:
parent
e14a0f563b
commit
f932123330
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user