2004-12-17 Mike Kestner <mkestner@novell.com>
* glade/XML.custom (BindFields) : support multiple autoconnects in different roots by not writing null widgets to the tagged fields. [Fixes #68455] svn path=/trunk/gtk-sharp/; revision=37917
This commit is contained in:
parent
9727ef31e2
commit
348c8035e3
2 changed files with 15 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2004-12-17 Mike Kestner <mkestner@novell.com>
|
||||
|
||||
* 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 <mkestner@novell.com>
|
||||
|
||||
* gtk/Gtk.metadata : hide Object and Widget.Destroy.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue