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>
|
2004-12-17 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
* gtk/Gtk.metadata : hide Object and Widget.Destroy.
|
* gtk/Gtk.metadata : hide Object and Widget.Destroy.
|
||||||
|
|
|
@ -292,9 +292,15 @@
|
||||||
continue;
|
continue;
|
||||||
// The widget to field binding must be 1:1, so only check
|
// The widget to field binding must be 1:1, so only check
|
||||||
// the first attribute.
|
// the first attribute.
|
||||||
WidgetAttribute widget = (WidgetAttribute) attrs[0];
|
WidgetAttribute attr = (WidgetAttribute) attrs[0];
|
||||||
if (widget.Specified) field.SetValue (target, GetWidget (widget.Name), flags, null, null);
|
Gtk.Widget widget;
|
||||||
else field.SetValue (target, GetWidget (field.Name), flags, null, null);
|
if (attr.Specified)
|
||||||
|
widget = GetWidget (attr.Name);
|
||||||
|
else
|
||||||
|
widget = GetWidget (field.Name);
|
||||||
|
|
||||||
|
if (widget != null)
|
||||||
|
field.SetValue (target, widget, flags, null, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue