[Gtk-sharp-list] GIO# System.InvalidCastException in VolumeMonitor.MountAdded event
Christian Hoff
christian_hoff at gmx.net
Sun Oct 11 05:19:45 EDT 2009
Chris Szikszoy wrote:
> I saw that GIO# bindings landed in the mainline gtk# branch recently and
> wanted experiment to see if I could replace the old Gnome.VFS in my
> application. I've built the latest gtk# from svn and am running into a
> problem with the VolumeMonitor.Mount* signals. I keep getting an
> InvalidCastException when trying to access args.Mount from any of the events
> (MountAdded, MountRemoved, MountPreUnmount, MountChanged).
>
> I've looked at the generated code and it seems to be failing at here:
> public Mount Mount{
> get {
> return (GLib.Mount)GLib.SignalArgs.get_Args()[0];
> }
> }
>
I have attached a patch which fixes the issue together with a modified
version of your test program. Mike, could you review?
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: generator-signalargs-accessor-v1_0.patch
Type: text/x-patch
Size: 1263 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20091011/5f9f6461/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gio-mount-test.cs
Type: text/x-csharp
Size: 569 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20091011/5f9f6461/attachment-0001.bin
More information about the Gtk-sharp-list
mailing list