Don't require Gtk# patch from bug #501685

This commit is contained in:
Sebastian Dröge 2009-05-13 14:42:04 +02:00
parent 1242478731
commit 0164337fa8
3 changed files with 13 additions and 7 deletions

1
README
View file

@ -1,7 +1,6 @@
To build this Gtk# from trunk is required and the following patches:
http://bugzilla.novell.com/show_bug.cgi?id=323372
http://bugzilla.novell.com/show_bug.cgi?id=501685
http://bugzilla.novell.com/show_bug.cgi?id=497667
http://bugzilla.novell.com/show_bug.cgi?id=503048
http://bugzilla.novell.com/show_bug.cgi?id=503060

View file

@ -89,9 +89,12 @@ namespace Gst.Interfaces {
GCHandle gch = (GCHandle) data;
ColorBalanceAdapter adapter = gch.Target as ColorBalanceAdapter;
PropertyInfo pi = adapter.Type.GetProperty ("BalanceType", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.FlattenHierarchy);
if (pi != null && pi.PropertyType == typeof (Gst.Interfaces.ColorBalanceType))
native_iface.BalanceType = (Gst.Interfaces.ColorBalanceType) pi.GetValue (null, null);
ColorBalanceImplementor implementor = adapter.Implementor;
if (implementor != null) {
PropertyInfo pi = implementor.GetType().GetProperty ("BalanceType", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.FlattenHierarchy);
if (pi != null && pi.PropertyType == typeof (Gst.Interfaces.ColorBalanceType))
native_iface.BalanceType = (Gst.Interfaces.ColorBalanceType) pi.GetValue (null, null);
}
Marshal.StructureToPtr (native_iface, ifaceptr, false);
gch.Free ();

View file

@ -189,9 +189,13 @@ namespace Gst.Interfaces {
GCHandle gch = (GCHandle) data;
MixerAdapter adapter = gch.Target as MixerAdapter;
PropertyInfo pi = adapter.Type.GetProperty ("MixerType", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.FlattenHierarchy);
if (pi != null && pi.PropertyType == typeof (Gst.Interfaces.MixerType))
native_iface.MixerType = (Gst.Interfaces.MixerType) pi.GetValue (null, null);
MixerImplementor implementor = adapter.Implementor;
if (implementor != null) {
PropertyInfo pi = implementor.GetType().GetProperty ("MixerType", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.FlattenHierarchy);
if (pi != null && pi.PropertyType == typeof (Gst.Interfaces.MixerType))
native_iface.MixerType = (Gst.Interfaces.MixerType) pi.GetValue (null, null);
}
Marshal.StructureToPtr (native_iface, ifaceptr, false);
gch.Free ();