AUDIT: r16597 - gnucash/trunk/src/gnome - #496023: Handle correct signal for closing the sx editor.

Andreas Köhler andi5 at cvs.gnucash.org
Sun Nov 18 19:16:11 EST 2007


Author: andi5
Date: 2007-11-18 19:16:11 -0500 (Sun, 18 Nov 2007)
New Revision: 16597
Trac: http://svn.gnucash.org/trac/changeset/16597

Modified:
   gnucash/trunk/src/gnome/dialog-sx-editor.c
Log:
#496023: Handle correct signal for closing the sx editor.

BP


Modified: gnucash/trunk/src/gnome/dialog-sx-editor.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-sx-editor.c	2007-11-14 01:04:16 UTC (rev 16596)
+++ gnucash/trunk/src/gnome/dialog-sx-editor.c	2007-11-19 00:16:11 UTC (rev 16597)
@@ -173,7 +173,7 @@
 
 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 @@
 }
 
 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 @@
                                 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 );



More information about the gnucash-changes mailing list