r16659 - gnucash/branches/2.2/src/gnome - [r16597] #496023: Handle correct signal for closing the sx editor.

Andreas Köhler andi5 at cvs.gnucash.org
Sat Dec 15 17:46:27 EST 2007


Author: andi5
Date: 2007-12-15 17:46:26 -0500 (Sat, 15 Dec 2007)
New Revision: 16659
Trac: http://svn.gnucash.org/trac/changeset/16659

Modified:
   gnucash/branches/2.2/src/gnome/dialog-sx-editor.c
Log:
[r16597] #496023: Handle correct signal for closing the sx editor.

Approved by jsled.


Modified: gnucash/branches/2.2/src/gnome/dialog-sx-editor.c
===================================================================
--- gnucash/branches/2.2/src/gnome/dialog-sx-editor.c	2007-12-15 22:43:43 UTC (rev 16658)
+++ gnucash/branches/2.2/src/gnome/dialog-sx-editor.c	2007-12-15 22:46:26 UTC (rev 16659)
@@ -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