diff --git a/ChangeLog b/ChangeLog index 943f97abd..01a76f70a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-12-17 Mike Kestner + + * glade/XML.custom (BindFields) : support multiple autoconnects + in different roots by not writing null widgets to the tagged + fields. [Fixes #68455] + 2004-12-17 Mike Kestner * gtk/Gtk.metadata : hide Object and Widget.Destroy. diff --git a/glade/XML.custom b/glade/XML.custom index 65ec4a1a1..489f3746b 100644 --- a/glade/XML.custom +++ b/glade/XML.custom @@ -292,9 +292,15 @@ continue; // The widget to field binding must be 1:1, so only check // the first attribute. - WidgetAttribute widget = (WidgetAttribute) attrs[0]; - if (widget.Specified) field.SetValue (target, GetWidget (widget.Name), flags, null, null); - else field.SetValue (target, GetWidget (field.Name), flags, null, null); + WidgetAttribute attr = (WidgetAttribute) attrs[0]; + Gtk.Widget widget; + if (attr.Specified) + widget = GetWidget (attr.Name); + else + widget = GetWidget (field.Name); + + if (widget != null) + field.SetValue (target, widget, flags, null, null); } }