Fix the glade auto-connect code so it doesn't swap the callback

arguments when an explicit "object" is provided to the callback.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12156 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2005-12-11 00:50:57 +00:00
parent 6a3f33e5eb
commit 75671efc2f
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,10 @@
2005-12-10 David Hampton <hampton@employees.org>
* src/gnome-utils/dialog-utils.c: Fix the glade auto-connect code
so it doesn't swap the callback arguments when an explicit
"object" is provided to the callback. (This is an unused code
path that is about to be used.)
* src/register/register-gnome/gnucash-grid.c: Andreas Köhler's
patch to fix the alignment of cells in the register.

View File

@ -913,9 +913,9 @@ gnc_glade_autoconnect_full_func(const gchar *handler_name,
if (other_object) {
if (signal_after)
g_signal_connect_object (signal_object, signal_name, func,
other_object, G_CONNECT_AFTER | G_CONNECT_SWAPPED);
other_object, G_CONNECT_AFTER);
else
g_signal_connect_swapped (signal_object, signal_name, func, other_object);
g_signal_connect_object (signal_object, signal_name, func, other_object, 0);
} else {
if (signal_after)
g_signal_connect_after(signal_object, signal_name, func, user_data);