static void ToggleSizeRequestedSignalCallback(IntPtr inst, out int arg0, IntPtr gch) { Gtk.ToggleSizeRequestedArgs args = new Gtk.ToggleSizeRequestedArgs(); try { GLib.Signal sig = ((GCHandle)gch).Target as GLib.Signal; if (sig == null) { throw new Exception("Unknown signal GC handle received " + gch); } args.Args = new object[1]; Gtk.ToggleSizeRequestedHandler handler = (Gtk.ToggleSizeRequestedHandler)sig.Handler; handler(GLib.Object.GetObject(inst), args); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, false); } try { arg0 = ((int)args.Args[0]); } catch (Exception) { Exception ex = new Exception("args.RetVal or 'out' property unset or set to incorrect type in Gtk.ToggleSizeRequestedHandler callback"); GLib.ExceptionManager.RaiseUnhandledException(ex, true); // NOTREACHED: above call doesn't return. throw ex; } }
static void ToggleSizeRequestedSignalCallback (IntPtr inst, out int arg0, IntPtr gch) { Gtk.ToggleSizeRequestedArgs args = new Gtk.ToggleSizeRequestedArgs (); try { GLib.Signal sig = ((GCHandle) gch).Target as GLib.Signal; if (sig == null) throw new Exception("Unknown signal GC handle received " + gch); args.Args = new object[1]; Gtk.ToggleSizeRequestedHandler handler = (Gtk.ToggleSizeRequestedHandler) sig.Handler; handler (GLib.Object.GetObject (inst), args); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException (e, false); } try { arg0 = ((int)args.Args[0]); } catch (Exception) { Exception ex = new Exception ("args.RetVal or 'out' property unset or set to incorrect type in Gtk.ToggleSizeRequestedHandler callback"); GLib.ExceptionManager.RaiseUnhandledException (ex, true); // NOTREACHED: above call doesn't return. throw ex; } }