r16453 - gnucash/trunk/src/gnome - Connect a signal to a glade widget before destroying that.
Andreas Köhler
andi5 at cvs.gnucash.org
Sat Aug 18 21:17:20 EDT 2007
Author: andi5
Date: 2007-08-18 21:17:18 -0400 (Sat, 18 Aug 2007)
New Revision: 16453
Trac: http://svn.gnucash.org/trac/changeset/16453
Modified:
gnucash/trunk/src/gnome/window-reconcile.c
Log:
Connect a signal to a glade widget before destroying that.
In some cases the interest button in the reconciliation dialog is for
payments, in some for charges or otherwise it is completely destroyed.
Avoid a critical warning caused by binding a signal to it.
Modified: gnucash/trunk/src/gnome/window-reconcile.c
===================================================================
--- gnucash/trunk/src/gnome/window-reconcile.c 2007-08-18 21:47:13 UTC (rev 16452)
+++ gnucash/trunk/src/gnome/window-reconcile.c 2007-08-19 01:17:18 UTC (rev 16453)
@@ -655,6 +655,7 @@
/* Create the dialog box */
xml = gnc_glade_xml_new ("reconcile.glade", "Reconcile Start Dialog");
dialog = glade_xml_get_widget (xml, "Reconcile Start Dialog");
+ glade_xml_signal_autoconnect_full(xml, gnc_glade_autoconnect_full_func, &data);
title = gnc_recn_make_window_name (account);
gtk_window_set_title(GTK_WINDOW(dialog), title);
g_free (title);
@@ -733,9 +734,6 @@
gtk_widget_set_sensitive(GTK_WIDGET(interest), FALSE);
}
- glade_xml_signal_autoconnect_full(xml, gnc_glade_autoconnect_full_func,
- &data);
-
gtk_widget_show_all(dialog);
gtk_widget_grab_focus(gnc_amount_edit_gtk_entry
More information about the gnucash-changes
mailing list