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 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 );
|
static gboolean sxed_confirmed_cancel( GncSxEditorDialog *sxed );
|
||||||
|
|
||||||
@ -1036,8 +1036,8 @@ scheduledxaction_editor_dialog_destroy(GtkObject *object, gpointer data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static
|
static
|
||||||
gint
|
gboolean
|
||||||
sxed_close_event( GtkDialog *dlg, gpointer ud )
|
sxed_delete_event( GtkWidget *widget, GdkEvent *event, gpointer ud )
|
||||||
{
|
{
|
||||||
GncSxEditorDialog *sxed = (GncSxEditorDialog*)ud;
|
GncSxEditorDialog *sxed = (GncSxEditorDialog*)ud;
|
||||||
|
|
||||||
@ -1173,8 +1173,8 @@ gnc_ui_scheduled_xaction_editor_dialog_create(SchedXaction *sx,
|
|||||||
sxed_close_handler,
|
sxed_close_handler,
|
||||||
sxed );
|
sxed );
|
||||||
|
|
||||||
g_signal_connect( sxed->dialog, "close",
|
g_signal_connect( sxed->dialog, "delete_event",
|
||||||
G_CALLBACK(sxed_close_event), sxed );
|
G_CALLBACK(sxed_delete_event), sxed );
|
||||||
g_signal_connect( sxed->dialog, "destroy",
|
g_signal_connect( sxed->dialog, "destroy",
|
||||||
G_CALLBACK(scheduledxaction_editor_dialog_destroy),
|
G_CALLBACK(scheduledxaction_editor_dialog_destroy),
|
||||||
sxed );
|
sxed );
|
||||||
|
Loading…
Reference in New Issue
Block a user