static void GetLayoutOffsets_cb(IntPtr inst, out int x, out int y) { try { Scale __obj = GLib.Object.GetObject(inst, false) as Scale; __obj.OnGetLayoutOffsets(out x, out y); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }